Request GUILDS intent even if not in classic mode (#317)

* request guild intent even if not classic mode

* fix formatting
This commit is contained in:
jonah 2022-10-11 15:23:27 -04:00 committed by GitHub
parent 9ce4b470da
commit c5bf373a43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

4
app.js
View File

@ -45,10 +45,10 @@ const esmBotVersion = JSON.parse(readFileSync(new URL("./package.json", import.m
const intents = [
"GUILD_VOICE_STATES",
"DIRECT_MESSAGES"
"DIRECT_MESSAGES",
"GUILDS"
];
if (types.classic) {
intents.push("GUILDS");
intents.push("GUILD_MESSAGES");
intents.push("MESSAGE_CONTENT");
}