voice id hotfix2

This commit is contained in:
2022-08-31 21:31:48 +02:00
parent 18d68ab353
commit 07098c3b7d

View File

@@ -1,4 +1,5 @@
module.exports = (client, message) => { module.exports = (client, message) => {
bot = client.guild.member.fetch
if (message.author.bot || message.channel.type === "dm") return; if (message.author.bot || message.channel.type === "dm") return;
const prefix = process.env.PREFIX; const prefix = process.env.PREFIX;
@@ -31,10 +32,10 @@ module.exports = (client, message) => {
return message.channel.send( return message.channel.send(
`You're not in a voice channel ${message.author}... try again ? ❌` `You're not in a voice channel ${message.author}... try again ? ❌`
); );
if ( if (
message.guild.me.voice.channel && message.guild.members.me.voice.channel &&
message.member.voice.channelid !== message.guild.me.voice.channelid message.guild.members.voice.channelid !== message.guild.members.me.voice.channel.id
) )
return message.channel.send( return message.channel.send(
`You are not in the same voice channel ${message.author}... try again ? ❌` `You are not in the same voice channel ${message.author}... try again ? ❌`