Skip to content

Commit

Permalink
[Enhancement] updated the leave message
Browse files Browse the repository at this point in the history
  • Loading branch information
naseif committed Nov 9, 2021
1 parent 84a0904 commit d11c369
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions playerEvents/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,13 @@ module.exports.playerEvents = (player) => {
logger(
`${queue.guild.name}: Voice channel is empty right now!, leaving the Channel`
);
await queue.metadata.channel.send({
embeds: [embedMessage("9dcc37", `Leaving the channel since its empty!`)],
await queue.metadata.channel.channel.send({
embeds: [
embedMessage(
"9dcc37",
`Leaving ${queue.metadata.channel.guild.me.voice.channel.toString()} since its empty 🙄\n consider using the 247 command to prevent this behaviour 😎`
),
],
});
});
player.on("connectionCreate", (queue, connection) => {
Expand Down

0 comments on commit d11c369

Please sign in to comment.