mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-19 13:56:43 +02:00
Fix
This commit is contained in:
@@ -31,15 +31,15 @@ module.exports = class SlashRegistry {
|
||||
|
||||
uploadTestCommands() {
|
||||
return this.client.rest.put(
|
||||
Routes.applicationGuildCommands(this.client.id, TEST_GUILD_ID),
|
||||
Routes.applicationGuildCommands(this.client.user.id, TEST_GUILD_ID),
|
||||
{ body: this.commands.map(cmd => cmd.data.toJSON()) }
|
||||
);
|
||||
}
|
||||
|
||||
uploadGlobalCommands() {
|
||||
return this.client.rest.put(
|
||||
Routes.applicationCommands(this.client.id),
|
||||
{ body: commands }
|
||||
Routes.applicationCommands(this.client.user.id),
|
||||
{ body: this.commands.map(cmd => cmd.data.toJSON()) }
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user