feat(arabot): add trial mods to mods

This commit is contained in:
Anthony 2022-09-09 00:47:41 +01:00
parent 915532294e
commit ebd370b774
3 changed files with 3 additions and 0 deletions

View File

@ -44,6 +44,7 @@ class ModOnlyPrecondition extends AllFlowsPrecondition {
private async checkMod(user: GuildMember) { private async checkMod(user: GuildMember) {
return user.roles.cache.has(IDs.roles.staff.moderator) return user.roles.cache.has(IDs.roles.staff.moderator)
|| user.roles.cache.has(IDs.roles.staff.trialModerator)
? this.ok() ? this.ok()
: this.error({ message: 'Only moderators can run this command!' }); : this.error({ message: 'Only moderators can run this command!' });
} }

View File

@ -47,6 +47,7 @@ const devIDs = {
eventCoordinator: '999431675165556817', eventCoordinator: '999431675165556817',
restricted: '999431675123597407', restricted: '999431675123597407',
moderator: '999431675123597408', moderator: '999431675123597408',
trialModerator: '999431675123597404',
verifier: '999431675123597406', verifier: '999431675123597406',
trialVerifier: '999431675123597405', trialVerifier: '999431675123597405',
}, },

View File

@ -50,6 +50,7 @@ let IDs = {
eventCoordinator: '944732860554817586', eventCoordinator: '944732860554817586',
restricted: '851624392928264222', restricted: '851624392928264222',
moderator: '826157475815489598', moderator: '826157475815489598',
trialModerator: '982074555596152904',
verifier: '871802735031373856', verifier: '871802735031373856',
}, },
stageHost: '854893757593419786', stageHost: '854893757593419786',