aboutsummaryrefslogtreecommitdiff
path: root/src/commands/config/blacklist.ts
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2021-07-17 18:14:00 +0000
committergithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2021-07-17 18:14:00 +0000
commitb342b10526616123420688253468ff4ca78e4c55 (patch)
treea49611f62c1098506da925e449b133916338d0de /src/commands/config/blacklist.ts
parent2db40054054c9452359c83cbad23bb2c9fa3234e (diff)
downloadtanzanite-b342b10526616123420688253468ff4ca78e4c55.tar.gz
tanzanite-b342b10526616123420688253468ff4ca78e4c55.tar.bz2
tanzanite-b342b10526616123420688253468ff4ca78e4c55.zip
Automatically format code
Diffstat (limited to 'src/commands/config/blacklist.ts')
-rw-r--r--src/commands/config/blacklist.ts6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/commands/config/blacklist.ts b/src/commands/config/blacklist.ts
index 9047c41..8e5d703 100644
--- a/src/commands/config/blacklist.ts
+++ b/src/commands/config/blacklist.ts
@@ -77,10 +77,8 @@ export default class BlacklistCommand extends BushCommand {
if (global) {
if (action === 'toggle') {
- const blacklistedUsers = (await Global.findByPk(this.client.config.environment))
- .blacklistedUsers;
- const blacklistedChannels = (await Global.findByPk(this.client.config.environment))
- .blacklistedChannels;
+ const blacklistedUsers = (await Global.findByPk(this.client.config.environment)).blacklistedUsers;
+ const blacklistedChannels = (await Global.findByPk(this.client.config.environment)).blacklistedChannels;
action = blacklistedUsers.includes(targetID) || blacklistedChannels.includes(targetID) ? 'unblacklist' : 'blacklist';
}
const success = await this.client.util