diff --git a/commands/Music/play.c.js b/commands/Music/play.c.js index 8330a12e..1d98b053 100644 --- a/commands/Music/play.c.js +++ b/commands/Music/play.c.js @@ -30,7 +30,7 @@ class PlayContext extends BaseCommand { const query = links[0], voice = interaction.member.voice; - if (!voice) return interaction.error("music/play:NO_VOICE_CHANNEL", null, { edit: true }); + if (!voice.channel) return interaction.error("music/play:NO_VOICE_CHANNEL", null, { edit: true }); const perms = voice.channel.permissionsFor(client.user); if (!perms.has(PermissionsBitField.Flags.Connect) || !perms.has(PermissionsBitField.Flags.Speak)) return interaction.error("music/play:VOICE_CHANNEL_CONNECT", null, { edit: true }); diff --git a/commands/Music/play.js b/commands/Music/play.js index 658b8f0c..d8c5f21a 100644 --- a/commands/Music/play.js +++ b/commands/Music/play.js @@ -41,7 +41,7 @@ class Play extends BaseCommand { const query = interaction.options.getString("query"), voice = interaction.member.voice; - if (!voice) return interaction.error("music/play:NO_VOICE_CHANNEL", null, { edit: true }); + if (!voice.channel) return interaction.error("music/play:NO_VOICE_CHANNEL", null, { edit: true }); const perms = voice.channel.permissionsFor(client.user); if (!perms.has(PermissionsBitField.Flags.Connect) || !perms.has(PermissionsBitField.Flags.Speak)) return interaction.error("music/play:VOICE_CHANNEL_CONNECT", null, { edit: true });