From 10f22061ae76f4581417b68f34fe205491be1943 Mon Sep 17 00:00:00 2001 From: MotiCAT Date: Mon, 4 Dec 2023 23:13:01 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9Add=20reply=20message?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message when a bot is not participating in a voice channel --- src/commands/stop.ts | 2 ++ src/interactions/stop.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/commands/stop.ts b/src/commands/stop.ts index 3cb76f2..100861c 100644 --- a/src/commands/stop.ts +++ b/src/commands/stop.ts @@ -6,6 +6,8 @@ export async function stopCommand(message: Message): Promise { if (message.guild?.members.me?.voice.channel) { message.guild.members.me.voice.disconnect(); message.reply(embeds.videoStopped); + } else { + message.reply(embeds.voiceChannelJoin); } queueManager.queues.delete(message.guildId!); diff --git a/src/interactions/stop.ts b/src/interactions/stop.ts index d0ffccc..43aa9dc 100644 --- a/src/interactions/stop.ts +++ b/src/interactions/stop.ts @@ -6,6 +6,8 @@ export async function stopCommand(interaction: ChatInputCommandInteraction): Pro if (interaction.guild?.members.me?.voice.channel) { interaction.guild.members.me.voice.disconnect(); interaction.reply(embeds.videoStopped); + } else { + interaction.reply(embeds.voiceChannelJoin); } queueManager.queues.delete(interaction.guildId!);