mirror of
https://github.com/System-End/Discord-Bot.git
synced 2026-04-19 20:55:16 +00:00
Fixed music issues
This commit is contained in:
parent
5240f49079
commit
c763873eb8
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ module.exports = async (client, interaction, args) => {
|
||||||
const channel = interaction.member.voice.channel;
|
const channel = interaction.member.voice.channel;
|
||||||
if (!channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction);
|
if (!channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction);
|
||||||
|
|
||||||
if (interaction.guild.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction);
|
if (interaction.guild.members.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.members.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction);
|
||||||
|
|
||||||
if (interaction.client.playerManager.get(interaction.guild.id)) return client.errNormal({ error: `You can't use this while a track is playing!`, type: 'editreply' }, interaction);
|
if (interaction.client.playerManager.get(interaction.guild.id)) return client.errNormal({ error: `You can't use this while a track is playing!`, type: 'editreply' }, interaction);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue