From 3d4f5061d402b44218cdfd351f39317d5f8ecd11 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Sun, 15 Oct 2023 23:54:53 -0400 Subject: New feature (embed thumbnails); Docker; Package update --- Commands/pause.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Commands/pause.js') diff --git a/Commands/pause.js b/Commands/pause.js index 9e6026c..ab5a609 100644 --- a/Commands/pause.js +++ b/Commands/pause.js @@ -30,7 +30,7 @@ export default { .setDescription('Pauses music'), 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 }); if (!isAudioStatePaused) { toggleAudioState(); -- cgit v1.2.3