From ba29c58d526724b57e325a1df4154b98550fff74 Mon Sep 17 00:00:00 2001 From: Histmy Date: Wed, 2 Aug 2023 15:01:08 +0200 Subject: [PATCH] =?UTF-8?q?proste=20vojs=20broken,=20pi=C4=8Do=20discord?= =?UTF-8?q?=20sra=C4=8Dka?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/registerSlashCommands.ts | 6 +----- src/utils/voice.ts | 8 +++++--- 2 files changed, 6 insertions(+), 8 deletions(-) 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