From 6f90443b716fc90e31049433db8dd5eac56f5e1a Mon Sep 17 00:00:00 2001 From: Anthony Date: Wed, 3 Aug 2022 05:19:53 +0100 Subject: [PATCH] fix(arabot): add a not to an if statement to give sus role --- src/commands/mod/sus.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/mod/sus.ts b/src/commands/mod/sus.ts index 7ca514d..ef8402e 100644 --- a/src/commands/mod/sus.ts +++ b/src/commands/mod/sus.ts @@ -250,7 +250,7 @@ export class SusCommand extends Command { await addToDatabase(user.id, mod.id, note); // Give the user the sus role they don't already have the sus note - if (userGuildMember.roles.cache.has(IDs.roles.restrictions.sus)) { + if (!userGuildMember.roles.cache.has(IDs.roles.restrictions.sus)) { await userGuildMember!.roles.add(IDs.roles.restrictions.sus); }