Fix bug in deploy commands
- Pass the client ID from the bot to the command
This commit is contained in:
4
index.js
4
index.js
@@ -123,7 +123,7 @@ client.on('ready', () => {
|
||||
|
||||
// Deploy slash commands
|
||||
log.DEBUG("Deploying slash commands");
|
||||
deployCommands.deploy(client.guilds.cache.map(guild => guild.id));
|
||||
deployCommands.deploy(client.user.id, client.guilds.cache.map(guild => guild.id));
|
||||
|
||||
log.DEBUG(`Starting HTTP Server`);
|
||||
runHTTPServer();
|
||||
@@ -146,4 +146,4 @@ for (const file of eventFiles) {
|
||||
}
|
||||
}
|
||||
|
||||
client.login(discordToken); //Load Client Discord Token
|
||||
client.login(discordToken); //Load Client Discord Token
|
||||
|
||||
Reference in New Issue
Block a user