diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-08-30 11:09:36 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-08-30 11:09:36 -0400 |
commit | fb73d1b421638ea695eeafeee2215a1e923c4d4a (patch) | |
tree | 57c631f590478014f9ba1739a0d0c19ec05df09d /src/commands/config/joinRoles.ts | |
parent | 48661511dd485957506e7900c8e86916aa3ea3af (diff) | |
download | tanzanite-fb73d1b421638ea695eeafeee2215a1e923c4d4a.tar.gz tanzanite-fb73d1b421638ea695eeafeee2215a1e923c4d4a.tar.bz2 tanzanite-fb73d1b421638ea695eeafeee2215a1e923c4d4a.zip |
leaderboard command and some fixes
Diffstat (limited to 'src/commands/config/joinRoles.ts')
-rw-r--r-- | src/commands/config/joinRoles.ts | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/commands/config/joinRoles.ts b/src/commands/config/joinRoles.ts index 9507d4b..0b9ac21 100644 --- a/src/commands/config/joinRoles.ts +++ b/src/commands/config/joinRoles.ts @@ -40,10 +40,8 @@ export default class JoinRolesCommand extends BushCommand { public override async exec(message: BushMessage | BushSlashMessage, { role }: { role: Role }): Promise<unknown> { const joinRoles = await message.guild!.getSetting('joinRoles'); const includes = joinRoles.includes(role.id); - client.console.debug(joinRoles); const newValue = util.addOrRemoveFromArray(includes ? 'remove' : 'add', joinRoles, role.id); await message.guild!.setSetting('joinRoles', newValue); - client.console.debug(joinRoles); return await message.util.reply({ content: `${util.emojis.success} Successfully ${includes ? 'removed' : 'added'} <@&${role.id}> ${ includes ? 'from' : 'to' |