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

Commit

Permalink
fix(bot/rejoin): fix admin check
Browse files Browse the repository at this point in the history
  • Loading branch information
cherryblossom000 committed Jan 8, 2022
1 parent e2a4c4e commit d3d515d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/bot/src/commands/slash/rejoin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,12 +172,12 @@ const checkIfAdmin = async (
guild: Guild
): Promise<boolean> => {
if (
(await guild.members.fetch(interaction.user.id)).permissions.has(
!(await guild.members.fetch(interaction.user.id)).permissions.has(
'ADMINISTRATOR'
)
) {
await interaction.reply(
'This command can only be used by someone with the Manage Messages permission or the bot owner!'
'This command can only be used by an administrator!'
)
return false
}
Expand Down

0 comments on commit d3d515d

Please sign in to comment.