Skip to content
This repository has been archived by the owner on Oct 17, 2024. It is now read-only.

Commit

Permalink
fix interaction
Browse files Browse the repository at this point in the history
  • Loading branch information
ringo360 committed Mar 16, 2024
1 parent 3f5541d commit def2aed
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/admin/commands/globalban.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@ module.exports = {
);
}

await interaction.deferReply();
if (subcommand !== 'report') {
console.log('Defering')
await interaction.deferReply();
}
if (subcommand === LANG.commands.globalban.subcommands.sync.name) {
const member = interaction.guild.members.cache.get(interaction.user.id);
if (!member.permissions.has([PermissionsBitField.Flags.Administrator])) {
Expand Down

0 comments on commit def2aed

Please sign in to comment.