diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-05-28 17:37:04 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-05-28 17:37:04 -0400 |
commit | f1cdbd260c6c2249fc0d765949d44d889bcaedc8 (patch) | |
tree | a91883fc6de76d739f99c795f1248474df6f1efc /src/commands/moderation/role.ts | |
parent | f3cde793e778d1dc29b704d9cce560c6e929e6e8 (diff) | |
download | tanzanite-f1cdbd260c6c2249fc0d765949d44d889bcaedc8.tar.gz tanzanite-f1cdbd260c6c2249fc0d765949d44d889bcaedc8.tar.bz2 tanzanite-f1cdbd260c6c2249fc0d765949d44d889bcaedc8.zip |
I can't read anything
Diffstat (limited to 'src/commands/moderation/role.ts')
-rw-r--r-- | src/commands/moderation/role.ts | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/src/commands/moderation/role.ts b/src/commands/moderation/role.ts index d5948c3..f03e0ad 100644 --- a/src/commands/moderation/role.ts +++ b/src/commands/moderation/role.ts @@ -22,13 +22,7 @@ export default class RoleCommand extends BushCommand { 'No Links': ['*', 'Admin Perms', 'Sr. Moderator', 'Moderator'], 'No Bots': ['*', 'Admin Perms', 'Sr. Moderator', 'Moderator'], 'No VC': ['*', 'Admin Perms', 'Sr. Moderator', 'Moderator'], - 'No Giveaways': [ - '*', - 'Admin Perms', - 'Sr. Moderator', - 'Moderator', - 'Helper' - ], + 'No Giveaways': ['*', 'Admin Perms', 'Sr. Moderator', 'Moderator', 'Helper'], 'No Support': ['*', 'Admin Perms', 'Sr. Moderator', 'Moderator'], 'Giveaway Donor': ['*', 'Admin Perms', 'Sr. Moderator', 'Moderator'], 'Giveaway (200m)': ['*', 'Admin Perms', 'Sr. Moderator', 'Moderator'], @@ -95,9 +89,7 @@ export default class RoleCommand extends BushCommand { !message.member.permissions.has('MANAGE_ROLES') && !this.client.ownerID.includes(message.author.id) ) { - const mappedRole = this.client.util.moulberryBushRoleMap.find( - (m) => m.id === role.id - ); + const mappedRole = this.client.util.moulberryBushRoleMap.find((m) => m.id === role.id); if (!mappedRole || !this.roleWhitelist[mappedRole.name]) { return message.util.reply( `<:error:837123021016924261> <@&${role.id}> is not whitelisted, and you do not have manage roles permission.`, @@ -107,14 +99,9 @@ export default class RoleCommand extends BushCommand { ); } const allowedRoles = this.roleWhitelist[mappedRole.name].map((r) => { - return this.client.util.moulberryBushRoleMap.find((m) => m.name === r) - .id; + return this.client.util.moulberryBushRoleMap.find((m) => m.name === r).id; }); - if ( - !message.member.roles.cache.some((role) => - allowedRoles.includes(role.id) - ) - ) { + if (!message.member.roles.cache.some((role) => allowedRoles.includes(role.id))) { return message.util.reply( `<:error:837123021016924261> <@&${role.id}> is whitelisted, but you do not have any of the roles required to manage it.`, { |