aboutsummaryrefslogtreecommitdiff
path: root/Commands/play.js
diff options
context:
space:
mode:
Diffstat (limited to 'Commands/play.js')
-rw-r--r--Commands/play.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/Commands/play.js b/Commands/play.js
index 49f0d3e..f6a7fd3 100644
--- a/Commands/play.js
+++ b/Commands/play.js
@@ -42,7 +42,7 @@ export default {
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 });
integer = interaction.options.getInteger('int');
if (integer) {