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
Copy file name to clipboardExpand all lines: commands/Music/247.js
+1-3Lines changed: 1 addition & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -9,9 +9,7 @@ module.exports = {
9
9
category: "Music",
10
10
run: async(client,interaction)=>{
11
11
awaitinteraction.deferReply({ephemeral: false});
12
-
13
-
constqueue=client.distube.getQueue(interaction);
14
-
if(!queue)returninteraction.editReply(`There is nothing in the queue right now!`);
12
+
15
13
const{ channel }=interaction.member.voice;
16
14
if(!channel||interaction.member.voice.channel!==interaction.guild.members.me.voice.channel)returninteraction.editReply("You need to be in a same/voice channel.")
if(!channel)returninteraction.editReply("You need to be in voice channel.")
31
+
if(!channel.permissionsFor(interaction.guild.members.me).has(PermissionsBitField.Flags.Connect))returninteraction.editReply(`I don't have perm \`CONNECT\` in ${channel.name} to join voice!`);
32
+
if(!channel.permissionsFor(interaction.guild.members.me).has(PermissionsBitField.Flags.Speak))returninteraction.editReply(`I don't have perm \`SPEAK\` in ${channel.name} to join voice!`);
0 commit comments