diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2023-10-15 23:54:53 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2023-10-15 23:54:53 -0400 |
| commit | 3d4f5061d402b44218cdfd351f39317d5f8ecd11 (patch) | |
| tree | 328b380cc4c9312a405e4531fc2a1cbab482385e /Commands/pause.js | |
| parent | 8c81aadddea65eef415f5b84986db21eff1fb20f (diff) | |
| download | DLAP-3d4f5061d402b44218cdfd351f39317d5f8ecd11.tar.gz DLAP-3d4f5061d402b44218cdfd351f39317d5f8ecd11.tar.bz2 DLAP-3d4f5061d402b44218cdfd351f39317d5f8ecd11.zip | |
New feature (embed thumbnails); Docker; Package update
Diffstat (limited to 'Commands/pause.js')
| -rw-r--r-- | Commands/pause.js | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |
