Register commands in Guild
This commit is contained in:
1 parent
007c78930e
commit
a82101ab30
1 file changed
+2
-3
@@ -76,10 +76,9 @@ class Client extends Discord.Client {
|
|||||||
|
|
||||||
this.on("ready", async () => {
|
this.on("ready", async () => {
|
||||||
const allCommands = slashCommands.concat(slashCommands1);
|
const allCommands = slashCommands.concat(slashCommands1);
|
||||||
await this.application?.commands.set(allCommands);
|
await this.application?.commands.set(allCommands, supportbot.Guild);
|
||||||
|
|
||||||
console.log(" ");
|
console.log(" ");
|
||||||
console.log(`\u001b[34;1m`, "▬▬▬▬▬▬▬ Slash Command ▬▬▬▬▬▬▬"),
|
console.log(`\u001b[34;1m`, "▬▬▬▬▬▬▬ Slash Commands ▬▬▬▬▬▬▬"),
|
||||||
console.log(" ");
|
console.log(" ");
|
||||||
|
|
||||||
slashCommands.forEach((cmd) =>
|
slashCommands.forEach((cmd) =>
|
||||||
|
|||||||
Reference in new issue
Block a user