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:
parent
9ce4b470da
commit
c5bf373a43
4
app.js
4
app.js
|
@ -45,10 +45,10 @@ const esmBotVersion = JSON.parse(readFileSync(new URL("./package.json", import.m
|
||||||
|
|
||||||
const intents = [
|
const intents = [
|
||||||
"GUILD_VOICE_STATES",
|
"GUILD_VOICE_STATES",
|
||||||
"DIRECT_MESSAGES"
|
"DIRECT_MESSAGES",
|
||||||
|
"GUILDS"
|
||||||
];
|
];
|
||||||
if (types.classic) {
|
if (types.classic) {
|
||||||
intents.push("GUILDS");
|
|
||||||
intents.push("GUILD_MESSAGES");
|
intents.push("GUILD_MESSAGES");
|
||||||
intents.push("MESSAGE_CONTENT");
|
intents.push("MESSAGE_CONTENT");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue