mirror of
https://github.com/hazemKrimi/discord-bot.git
synced 2026-05-01 18:30:25 +00:00
13 lines
362 B
JavaScript
13 lines
362 B
JavaScript
module.exports = {
|
|
name: 'leave',
|
|
description: 'leaves a voice channel',
|
|
execute: async(message, args) => {
|
|
if (!message.member.voice.channel) return message.reply('you need to join a channel!');
|
|
|
|
const voiceChannel = message.member.voice.channel;
|
|
|
|
voiceChannel.leave();
|
|
|
|
return message.channel.send('left!');
|
|
}
|
|
}; |