We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong code in button denietion (permissions) :
if (interaction.guild && handler.options?.clientPermissions?.length > 0) { const missing = []; for (const perm of handler.options.clientPermissions) { if (!interaction.guild.members.me.permissions.has(perm)) missing.push(perm); } if (missing.length > 0) { return interaction.client.emit('buttonDenied', { button: interaction, message: 'Client is missing permissions', metadata: { permissions: { got: interaction.guild.members.me.permissions.toArray().filter((x) => !missing.includes(x)), need: handler.options.clientPermissions, missing }, code: ButtonHandler_1.ButtonDeniedCode.ClientMissingPerms }, user: interaction.user }); } } if (interaction.guild && handler.options?.permissions?.length > 0) { const missing = []; const perms = interaction.member.permissions; for (const perm of handler.options.permissions) { if (!perms.has(perm)) missing.push(perm); } if (missing.length > 0) { return interaction.client.emit('buttonDenied', { button: interaction, message: 'Client is missing permissions', metadata: { permissions: { got: perms.toArray().filter((x) => !missing.includes(x)), need: handler.options.clientPermissions, missing }, code: ButtonHandler_1.ButtonDeniedCode.ClientMissingPerms // Here, we expect MissingPerms and not ClientMissingPerms }, user: interaction.user }); } }
The text was updated successfully, but these errors were encountered:
Fixed in fa5e4fc
Sorry, something went wrong.
No branches or pull requests
Wrong code in button denietion (permissions) :
The text was updated successfully, but these errors were encountered: