diff --git a/src/modules/registerSlashCommands.ts b/src/modules/registerSlashCommands.ts index 064f90b..cf367bb 100644 --- a/src/modules/registerSlashCommands.ts +++ b/src/modules/registerSlashCommands.ts @@ -57,8 +57,6 @@ const exp: Modul = { // and deploy your commands! try { - console.log(`Started refreshing application (/) commands.`); - // The put method is used to fully refresh all commands in the guild with the current set const data = (await rest.put( Routes.applicationCommands(client.user!.id), @@ -68,11 +66,9 @@ const exp: Modul = { data?.forEach(command => { client.slashCommandy[command.name] = command.id; }); - - console.log(`Successfully reloaded ${data?.length} application (/) commands.`); } catch (error) { // And of course, make sure you catch and log any errors! - console.error("Chyba při refreshování aplikačních (/) komandů", error); + log("Chyba při refreshování aplikačních (/) komandů", error); } } diff --git a/src/utils/voice.ts b/src/utils/voice.ts index 4f21147..bbf3185 100644 --- a/src/utils/voice.ts +++ b/src/utils/voice.ts @@ -53,6 +53,7 @@ export const novejJoin = (guild: Guild, channelId: string) => new Promise new Promise