Skip to content

Commit

Permalink
⚡️Send message at stop
Browse files Browse the repository at this point in the history
  • Loading branch information
MotiCAT committed Dec 3, 2023
1 parent 4ef6aef commit 34c586c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/commands/stop.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import { queueManager } from '../classes/queue';
import { Message } from 'discord.js';
import { Message, EmbedBuilder } from 'discord.js';

export async function stopCommand(message: Message): Promise<void> {
if (message.guild?.members.me?.voice.channel) {
message.guild.members.me.voice.disconnect();
message.reply({
embeds: [new EmbedBuilder().addFields({ name: 'Success', value: '再生を停止しました。' }).setColor('Green')]
});
}

queueManager.queues.delete(message.guildId!);
Expand Down

0 comments on commit 34c586c

Please sign in to comment.