From 267d44d535b2c71158a98004bc8b4fffac6d10d5 Mon Sep 17 00:00:00 2001 From: smyalygames Date: Mon, 6 Mar 2023 11:42:16 +0000 Subject: [PATCH] fix(arabot): add success to removing roles --- src/commands/roles/bookClub.ts | 1 + src/commands/roles/debateHost.ts | 1 + src/commands/roles/gameNightHost.ts | 1 + src/commands/roles/guest.ts | 1 + src/commands/roles/staff/mentor.ts | 1 + src/commands/roles/staff/mod.ts | 1 + src/commands/roles/staff/restrictedAccess.ts | 1 + src/commands/roles/staff/stagehost.ts | 1 + src/commands/roles/staff/trialMod.ts | 1 + src/commands/roles/staff/trialVerifier.ts | 1 + src/commands/roles/staff/verifier.ts | 1 + src/commands/roles/verification/activist.ts | 1 + src/commands/roles/verification/convinced.ts | 1 + src/commands/roles/verification/plus.ts | 1 + src/commands/roles/verification/trusted.ts | 1 + src/commands/roles/verification/vegan.ts | 1 + src/commands/roles/verification/vegcurious.ts | 1 + 17 files changed, 17 insertions(+) diff --git a/src/commands/roles/bookClub.ts b/src/commands/roles/bookClub.ts index d6ad93d..9ec7a79 100644 --- a/src/commands/roles/bookClub.ts +++ b/src/commands/roles/bookClub.ts @@ -129,6 +129,7 @@ export class BookClubCommand extends Command { await member.roles.remove(bookClub); await roleRemoveLog(user.id, mod.id, bookClub); info.message = `Removed the ${bookClub.name} role from ${user}`; + info.success = true; return info; } // Add Book Club role to the user diff --git a/src/commands/roles/debateHost.ts b/src/commands/roles/debateHost.ts index 5eb41da..85e03e3 100644 --- a/src/commands/roles/debateHost.ts +++ b/src/commands/roles/debateHost.ts @@ -130,6 +130,7 @@ export class DebateHostCommand extends Command { await member.roles.remove(debateHost); await roleRemoveLog(user.id, mod.id, debateHost); info.message = `Removed the ${debateHost.name} role from ${user}`; + info.success = true; return info; } // Add Debate Host role to the user diff --git a/src/commands/roles/gameNightHost.ts b/src/commands/roles/gameNightHost.ts index 1da3096..60979b7 100644 --- a/src/commands/roles/gameNightHost.ts +++ b/src/commands/roles/gameNightHost.ts @@ -129,6 +129,7 @@ export class GameNightHostCommand extends Command { await member.roles.remove(gameNightHost); await roleRemoveLog(user.id, mod.id, gameNightHost); info.message = `Removed the ${gameNightHost.name} role from ${user}`; + info.success = true; return info; } // Add Game Night Host role to the user diff --git a/src/commands/roles/guest.ts b/src/commands/roles/guest.ts index f6684eb..185c9f6 100644 --- a/src/commands/roles/guest.ts +++ b/src/commands/roles/guest.ts @@ -129,6 +129,7 @@ export class GuestCommand extends Command { await member.roles.remove(guest); await roleRemoveLog(user.id, mod.id, guest); info.message = `Removed the ${guest.name} role from ${user}`; + info.success = true; return info; } // Add Guest role to the user diff --git a/src/commands/roles/staff/mentor.ts b/src/commands/roles/staff/mentor.ts index 5e39a36..0cf5a76 100644 --- a/src/commands/roles/staff/mentor.ts +++ b/src/commands/roles/staff/mentor.ts @@ -130,6 +130,7 @@ export class MentorCommand extends Command { await member.roles.remove(mentor); await roleRemoveLog(user.id, mod.id, mentor, true); info.message = `Removed the ${mentor.name} role from ${user}`; + info.success = true; return info; } // Add Mentor role to the user diff --git a/src/commands/roles/staff/mod.ts b/src/commands/roles/staff/mod.ts index 8dd97ae..ecec059 100644 --- a/src/commands/roles/staff/mod.ts +++ b/src/commands/roles/staff/mod.ts @@ -129,6 +129,7 @@ export class ModCommand extends Command { await member.roles.remove(moderator); await roleRemoveLog(user.id, mod.id, moderator, true); info.message = `Removed the ${moderator.name} role from ${user}`; + info.success = true; return info; } // Add Mod role to the user diff --git a/src/commands/roles/staff/restrictedAccess.ts b/src/commands/roles/staff/restrictedAccess.ts index 82ef1bc..e78342d 100644 --- a/src/commands/roles/staff/restrictedAccess.ts +++ b/src/commands/roles/staff/restrictedAccess.ts @@ -130,6 +130,7 @@ export class RestrictedAccessCommand extends Command { await member.roles.remove(restricted); await roleRemoveLog(user.id, mod.id, restricted, true); info.message = `Removed the ${restricted.name} role from ${user}`; + info.success = true; return info; } // Add Restricted Access role to the user diff --git a/src/commands/roles/staff/stagehost.ts b/src/commands/roles/staff/stagehost.ts index d2b8ab2..eefacaf 100644 --- a/src/commands/roles/staff/stagehost.ts +++ b/src/commands/roles/staff/stagehost.ts @@ -129,6 +129,7 @@ export class StageHostCommand extends Command { await member.roles.remove(stageHost); await roleRemoveLog(user.id, mod.id, stageHost, true); info.message = `Removed the ${stageHost.name} role from ${user}`; + info.success = true; return info; } // Add Stage Host role to the user diff --git a/src/commands/roles/staff/trialMod.ts b/src/commands/roles/staff/trialMod.ts index 7564d20..8f3583d 100644 --- a/src/commands/roles/staff/trialMod.ts +++ b/src/commands/roles/staff/trialMod.ts @@ -130,6 +130,7 @@ export class TrialModCommand extends Command { await member.roles.remove(moderator); await roleRemoveLog(user.id, mod.id, moderator, true); info.message = `Removed the ${moderator.name} role from ${user}`; + info.success = true; return info; } // Add Trial Mod role to the user diff --git a/src/commands/roles/staff/trialVerifier.ts b/src/commands/roles/staff/trialVerifier.ts index b787a98..2edb493 100644 --- a/src/commands/roles/staff/trialVerifier.ts +++ b/src/commands/roles/staff/trialVerifier.ts @@ -129,6 +129,7 @@ export class TrialVerifierCommand extends Command { await member.roles.remove(trialVerifier); await roleRemoveLog(user.id, mod.id, trialVerifier, true); info.message = `Removed the ${trialVerifier.name} role from ${user}`; + info.success = true; return info; } // Add Trial Verifier role to the user diff --git a/src/commands/roles/staff/verifier.ts b/src/commands/roles/staff/verifier.ts index 0e803fe..9b0298e 100644 --- a/src/commands/roles/staff/verifier.ts +++ b/src/commands/roles/staff/verifier.ts @@ -129,6 +129,7 @@ export class VerifierCommand extends Command { await member.roles.remove(verifier); await roleRemoveLog(user.id, mod.id, verifier, true); info.message = `Removed the ${verifier.name} role from ${user}`; + info.success = true; return info; } // Add Verifier role to the user diff --git a/src/commands/roles/verification/activist.ts b/src/commands/roles/verification/activist.ts index dc79334..f5ba55d 100644 --- a/src/commands/roles/verification/activist.ts +++ b/src/commands/roles/verification/activist.ts @@ -144,6 +144,7 @@ export class ActivistCommand extends Command { await member.roles.remove(activist); await roleRemoveLog(user.id, mod.id, activist); info.message = `Removed the ${activist.name} role from ${user}`; + info.success = true; return info; } diff --git a/src/commands/roles/verification/convinced.ts b/src/commands/roles/verification/convinced.ts index 312240c..7fb041b 100644 --- a/src/commands/roles/verification/convinced.ts +++ b/src/commands/roles/verification/convinced.ts @@ -135,6 +135,7 @@ export class ConvincedCommand extends Command { await member.roles.remove(convinced); await roleRemoveLog(user.id, mod.id, convinced); info.message = `Removed the ${convinced.name} role from ${user}`; + info.success = true; return info; } // Add Convinced role to the user diff --git a/src/commands/roles/verification/plus.ts b/src/commands/roles/verification/plus.ts index a52dcc5..b4e058a 100644 --- a/src/commands/roles/verification/plus.ts +++ b/src/commands/roles/verification/plus.ts @@ -130,6 +130,7 @@ export class PlusCommand extends Command { await member.roles.remove(plus); await roleRemoveLog(user.id, mod.id, plus); info.message = `Removed the ${plus.name} role from ${user}`; + info.success = true; return info; } // Add Plus role to the user diff --git a/src/commands/roles/verification/trusted.ts b/src/commands/roles/verification/trusted.ts index 66f4758..a84afbf 100644 --- a/src/commands/roles/verification/trusted.ts +++ b/src/commands/roles/verification/trusted.ts @@ -130,6 +130,7 @@ export class TrustedCommand extends Command { await member.roles.remove(trusted); await roleRemoveLog(user.id, mod.id, trusted); info.message = `Removed the ${trusted.name} role from ${user}`; + info.success = true; return info; } // Add Trusted role to the user diff --git a/src/commands/roles/verification/vegan.ts b/src/commands/roles/verification/vegan.ts index ebb51e0..9465c8a 100644 --- a/src/commands/roles/verification/vegan.ts +++ b/src/commands/roles/verification/vegan.ts @@ -148,6 +148,7 @@ export class VeganCommand extends Command { ]); await roleRemoveLog(user.id, mod.id, vegan); info.message = `Removed the ${vegan.name} role from ${user}`; + info.success = true; return info; } diff --git a/src/commands/roles/verification/vegcurious.ts b/src/commands/roles/verification/vegcurious.ts index d2aa963..eecfa7a 100644 --- a/src/commands/roles/verification/vegcurious.ts +++ b/src/commands/roles/verification/vegcurious.ts @@ -141,6 +141,7 @@ export class VegCuriousCommand extends Command { await member.roles.remove(vegCurious); await roleRemoveLog(user.id, mod.id, vegCurious); info.message = `Removed the ${vegCurious.name} role from ${user}`; + info.success = true; return info; }