Rename again
This commit is contained in:
parent
d44fabf554
commit
dfbc5630f8
1 changed files with 8 additions and 2 deletions
|
@ -42,6 +42,12 @@ const commands = [
|
|||
|
||||
const rest = new REST({ version: '9' }).setToken(token);
|
||||
|
||||
rest.put(Routes.applicationGuildCommands(clientId, guildId), { body: commands })
|
||||
.then(() => console.log('Successfully registered application commands.'))
|
||||
if (process.argv[2] === 'global') {
|
||||
rest.put(Routes.applicationCommands(clientId), { body: commands })
|
||||
.then(() => console.log('Successfully registered application commands globally.'))
|
||||
.catch(console.error);
|
||||
}
|
||||
|
||||
rest.put(Routes.applicationGuildCommands(clientId, guildId), { body: commands })
|
||||
.then(() => console.log(`Successfully registered application commands for the guild ${guildId}.`))
|
||||
.catch(console.error);
|
Loading…
Reference in a new issue