From 6f3deaf16aa6b7b4065c45946a68c4daff728a60 Mon Sep 17 00:00:00 2001 From: LuanRT Date: Mon, 19 Dec 2022 18:51:20 -0300 Subject: [PATCH] fix: use `WEB` client in `setNotificationPreferences` --- src/core/InteractionManager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/InteractionManager.ts b/src/core/InteractionManager.ts index 13ea48c63..8d99b7f0d 100644 --- a/src/core/InteractionManager.ts +++ b/src/core/InteractionManager.ts @@ -175,7 +175,7 @@ class InteractionManager { throw new Error(`Invalid notification preference type: ${type}`); const action = await this.#actions.execute('/notification/modify_channel_preference', { - client: 'ANDROID', + client: 'WEB', params: Proto.encodeNotificationPref(channel_id, pref_types[type.toUpperCase() as keyof typeof pref_types]) });