mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-05-19 01:14:16 +02:00
fix(arabot): add a not to an if statement to give sus role
This commit is contained in:
parent
c757afaf84
commit
6f90443b71
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user