diff --git a/src/index.ts b/src/index.ts index 1060f23..e0c6f61 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,5 +1,5 @@ import readline = require('readline'); -import { Client, Guild, TextChannel } from 'discord.js'; +import { Client, Guild, Intents, TextChannel } from 'discord.js'; import { readFileSync } from 'fs'; import path = require('path'); @@ -158,7 +158,7 @@ class TextChannelLocation extends DiscordLocation { } -const client = new Client( { intents: 32767 } ); // 32767 is 111111111111111 (15 ones) in binary +const client = new Client( { intents: Intents.FLAGS.GUILDS } ); // 32767 is 111111111111111 (15 ones) in binary client.login(settings.token);