fix(arabot): add a not to an if statement to give sus role

This commit is contained in:
Anthony 2022-08-03 05:19:53 +01:00
parent c757afaf84
commit 6f90443b71

View File

@ -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);
}