From 6180a7d9ecf31c027fa51e28e789eeb950b170ec Mon Sep 17 00:00:00 2001 From: Ashley Zomo Date: Wed, 10 Nov 2021 00:13:55 -0600 Subject: [PATCH] functional --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);