From db11181a490ebee987b73aa9712abdd0f6f81412 Mon Sep 17 00:00:00 2001 From: Papaia <43409674+ItsPapaia@users.noreply.github.com> Date: Sun, 25 Oct 2020 13:54:37 +0200 Subject: [PATCH 1/2] chore(client): move intents to general options --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 719229a..7d22ad4 100644 --- a/src/index.js +++ b/src/index.js @@ -12,7 +12,7 @@ const { ignoredGuilds = [], token } = require('../config.json'); const client = new Client({ disableMentions: 'everyone', messageCacheMaxSize: 0, - ws: { intents: [DIRECT_MESSAGES, GUILDS, GUILD_MESSAGES] }, + intents: [DIRECT_MESSAGES, GUILDS, GUILD_MESSAGES], }); client.once('ready', () => console.log(`Ready as ${client.user.tag}`)); From 0f1e9d60959020ede6728c2e2031bdbb587fad94 Mon Sep 17 00:00:00 2001 From: Papaia <43409674+ItsPapaia@users.noreply.github.com> Date: Thu, 5 Nov 2020 11:31:16 +0200 Subject: [PATCH 2/2] refractor(ClientOptions): use bitwise or --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 7d22ad4..b3bd964 100644 --- a/src/index.js +++ b/src/index.js @@ -12,7 +12,7 @@ const { ignoredGuilds = [], token } = require('../config.json'); const client = new Client({ disableMentions: 'everyone', messageCacheMaxSize: 0, - intents: [DIRECT_MESSAGES, GUILDS, GUILD_MESSAGES], + intents: DIRECT_MESSAGES | GUILDS | GUILD_MESSAGES, }); client.once('ready', () => console.log(`Ready as ${client.user.tag}`));