Skip to content

Commit

Permalink
🩹Add reply message
Browse files Browse the repository at this point in the history
Message when a bot is not participating in a voice channel
  • Loading branch information
MotiCAT committed Dec 4, 2023
1 parent 026dbee commit 10f2206
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/commands/stop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ export async function stopCommand(message: Message): Promise<void> {
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!);
Expand Down
2 changes: 2 additions & 0 deletions src/interactions/stop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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!);
Expand Down

0 comments on commit 10f2206

Please sign in to comment.