Skip to content

Commit

Permalink
Merge pull request #135 from Mirasaki/mirasaki
Browse files Browse the repository at this point in the history
fix: dont check if client can join vc if already present
  • Loading branch information
Mirasaki authored Jun 7, 2024
2 parents 0839752 + 090f086 commit 8ca6560
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/modules/music.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ const requireInitializeSessionConditions = (interaction) => {

// Channel is full
// channel.userLimit >= channel.members.size
if (channel.full) {
if (
channel.full
&& !channel.members.some((m) => m.id === interaction.client.user.id)
) {
interaction.reply({
content: `${ emojis.error } ${ member }, your voice channel is currently full - this command has been cancelled`,
ephemeral: true
Expand Down

0 comments on commit 8ca6560

Please sign in to comment.