Skip to content

Commit

Permalink
fix(components): correct variable name for permissions check
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperchupuDev committed Sep 26, 2021
1 parent a6196f8 commit 7312b85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion events/interactionCreate.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module.exports = {

if (!interaction.member.permissions.has(component.permissions ?? 0)) {
return interaction.reply({
content: `You need the \`${command.permissions}\` permission to use this component`,
content: `You need the \`${component.permissions}\` permission to use this component`,
ephemeral: true
});
}
Expand Down

0 comments on commit 7312b85

Please sign in to comment.