diff options
| author | TymanWasTaken <32660892+tymanwastaken@users.noreply.github.com> | 2021-05-11 22:31:55 -0600 |
|---|---|---|
| committer | TymanWasTaken <32660892+tymanwastaken@users.noreply.github.com> | 2021-05-11 22:31:55 -0600 |
| commit | 31764f52541a0566f148fb70c1a0e02c99bb5099 (patch) | |
| tree | 1da5c2b17888fb8090e59a4fdef1b8a02705786c /src/commands/moderation | |
| parent | 42d8e605b497c98ed7a4b7e6f31fa1cc6d56e38a (diff) | |
| download | tanzanite-31764f52541a0566f148fb70c1a0e02c99bb5099.tar.gz tanzanite-31764f52541a0566f148fb70c1a0e02c99bb5099.tar.bz2 tanzanite-31764f52541a0566f148fb70c1a0e02c99bb5099.zip | |
add giveaway ping command and change '() => {}' to '() => undefined'
Diffstat (limited to 'src/commands/moderation')
| -rw-r--r-- | src/commands/moderation/role.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands/moderation/role.ts b/src/commands/moderation/role.ts index 60fe369..e799698 100644 --- a/src/commands/moderation/role.ts +++ b/src/commands/moderation/role.ts @@ -155,7 +155,7 @@ export default class RoleCommand extends BotCommand { } // no checks if the user has MANAGE_ROLES if (action == 'remove') { - const success = await user.roles.remove(role.id).catch(() => {}); + const success = await user.roles.remove(role.id).catch(() => undefined); if (success) return message.util.reply( `<:checkmark:837109864101707807> Successfully removed <@&${role.id}> from <@${user.id}>!`, @@ -167,7 +167,7 @@ export default class RoleCommand extends BotCommand { { allowedMentions: AllowedMentions.none() } ); } else if (action == 'add') { - const success = await user.roles.add(role.id).catch(() => {}); + const success = await user.roles.add(role.id).catch(() => undefined); if (success) { return message.util.reply( `<:checkmark:837109864101707807> Successfully added <@&${role.id}> to <@${user.id}>!`, |
