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

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");
}