aboutsummaryrefslogtreecommitdiff
path: root/src/commands/stop.js
blob: 0c5e3dfd210b02f68f03541b6986f09d93e9adb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
async function stopMusik(client,message) {
    const voiceChannel = message.member.voice.channel;

    if (!voiceChannel) {
        return message.channel.send("Join a voice channel to Execute this command");
    }

    await voiceChannel.leave();
    await message.channel.send("Stoping Music... Baye Baye.... 😅");
    client.user.setPresence({ activity: { name: `COMMANDS`, type: 'LISTENING' } });
}

module.exports = {
    execute(client,message, args) {
        stopMusik(client, message);
    }
}