diff options
Diffstat (limited to 'Commands/join.js')
| -rw-r--r-- | Commands/join.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Commands/join.js b/Commands/join.js index 2649784..e9bac9b 100644 --- a/Commands/join.js +++ b/Commands/join.js @@ -31,7 +31,7 @@ export default { .setDescription('Joins voice chat'), async execute(interaction, bot) { if (!interaction.member.voice.channel) return await interaction.reply({ content: 'You need to be in a voice channel to use this command.', ephemeral: true }); - if (!interaction.member.roles.cache.has(djRole) && interaction.user.id !== ownerID && !interaction.member.permission.has(PermissionFlagsBits.ManageGuild)) return interaction.reply({ content: 'You need a specific role to execute this command', ephemeral: true }); + if (!interaction.member.roles.cache.has(djRole) && interaction.user.id !== ownerID && !interaction.memberPermissions.has(PermissionFlagsBits.ManageGuild)) return interaction.reply({ content: 'You need a specific role to execute this command', ephemeral: true }); await interaction.reply({ content: 'Joining voice channel', ephemeral: true }); return await voiceInit(bot); |
