You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if(!member)returninteraction.reply({content: 'You can only execute this command within a guild.',ephemeral: true});
19
+
20
+
awaitinteraction.deferReply();
21
+
22
+
if(!member.voice.channelId)returninteraction.editReply(constructEmbed({color: 'RED',description: 'You must be in a voice channel to run this command.'}));
23
+
if(!member.voice.channel.joinable)returninteraction.editReply(constructEmbed({color: 'RED',description: 'I cannot join your voice channel.'}));
24
+
25
+
constcanUseCommand=awaitcanPerformAction(member);
26
+
if(!canUseCommand)returninteraction.editReply(constructEmbed({color: 'RED',description: 'DJ only mode is enabled. You must be a DJ to run this command.'}));
0 commit comments