mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-04 22:15:29 +00:00
Formatting
This commit is contained in:
1 parent
c7aa9b41c7
commit
5f8f989c6a
2 files changed
+19
-6
No files matched your search
+7
-2
@@ -16,8 +16,13 @@ const rest = new REST({ version: '10' }).setToken(token);
|
|||||||
|
|
||||||
(async () => {
|
(async () => {
|
||||||
try {
|
try {
|
||||||
console.log("DEPLOYING BOT SLASH COMMANDS");
|
console.log('DEPLOYING BOT SLASH COMMANDS');
|
||||||
console.log("Commands: ", commands.map((command) => {return command.name}));
|
console.log(
|
||||||
|
'Commands: ',
|
||||||
|
commands.map((command) => {
|
||||||
|
return command.name;
|
||||||
|
})
|
||||||
|
);
|
||||||
|
|
||||||
console.log('Started refreshing application (/) commands.');
|
console.log('Started refreshing application (/) commands.');
|
||||||
|
|
||||||
|
|||||||
@@ -16,14 +16,22 @@ const rest = new REST({ version: '10' }).setToken(token);
|
|||||||
|
|
||||||
(async () => {
|
(async () => {
|
||||||
try {
|
try {
|
||||||
console.log("DEPLOYING SYSTEM SLASH COMMANDS");
|
console.log('DEPLOYING SYSTEM SLASH COMMANDS');
|
||||||
console.log("System Commands: ", systemCommands.map((systemCommand) => {return systemCommand.name}));
|
console.log(
|
||||||
|
'System Commands: ',
|
||||||
|
systemCommands.map((systemCommand) => {
|
||||||
|
return systemCommand.name;
|
||||||
|
})
|
||||||
|
);
|
||||||
|
|
||||||
console.log('Started refreshing application (/) system commands.');
|
console.log('Started refreshing application (/) system commands.');
|
||||||
|
|
||||||
await rest.put(Routes.applicationGuildCommands(clientId, systemServerGuildId), {
|
await rest.put(
|
||||||
|
Routes.applicationGuildCommands(clientId, systemServerGuildId),
|
||||||
|
{
|
||||||
body: systemCommands
|
body: systemCommands
|
||||||
});
|
}
|
||||||
|
);
|
||||||
|
|
||||||
console.log('Successfully reloaded application (/) system commands.');
|
console.log('Successfully reloaded application (/) system commands.');
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Reference in new issue
Block a user