summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/helpers.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/utils/helpers.js b/src/utils/helpers.js
index 0362528..b407fb0 100644
--- a/src/utils/helpers.js
+++ b/src/utils/helpers.js
@@ -37,6 +37,11 @@ function requireVoiceChannel(interaction) {
return null;
}
+ if (voiceChannel.full && !perms.has(PermissionsBitField.Flags.MoveMembers)) {
+ interaction.editReply(`That voice channel is full (limit: ${voiceChannel.userLimit}). Raise the user limit or give me Move Members permission.`);
+ return null;
+ }
+
return voiceChannel;
}