aboutsummaryrefslogtreecommitdiff
path: root/src/commands/config
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-07-30 19:38:16 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-07-30 19:38:16 -0400
commit70fac30661ee06b07baceed6e44880b16e244626 (patch)
tree44b4c573043fc369ba9c79ef368da2f08f34e442 /src/commands/config
parentf5c2b7b946487c2828365cc63bc6f471dd6cfc2f (diff)
downloadtanzanite-70fac30661ee06b07baceed6e44880b16e244626.tar.gz
tanzanite-70fac30661ee06b07baceed6e44880b16e244626.tar.bz2
tanzanite-70fac30661ee06b07baceed6e44880b16e244626.zip
general clean up and fix automod
Diffstat (limited to 'src/commands/config')
-rw-r--r--src/commands/config/blacklist.ts4
-rw-r--r--src/commands/config/disable.ts4
2 files changed, 3 insertions, 5 deletions
diff --git a/src/commands/config/blacklist.ts b/src/commands/config/blacklist.ts
index 8093d83..150a1b7 100644
--- a/src/commands/config/blacklist.ts
+++ b/src/commands/config/blacklist.ts
@@ -15,8 +15,8 @@ export default class BlacklistCommand extends BushCommand {
args: [
{
id: 'target',
- type: Argument.union('channel', 'user'),
- match: 'phrase',
+ customType: Argument.union('channel', 'user'),
+
prompt: {
start: 'What channel or user that you would like to blacklist/unblacklist?',
retry: '{error} Pick a valid command.',
diff --git a/src/commands/config/disable.ts b/src/commands/config/disable.ts
index 41ca8a4..5d2e4dd 100644
--- a/src/commands/config/disable.ts
+++ b/src/commands/config/disable.ts
@@ -1,5 +1,4 @@
import { AllowedMentions, BushCommand, BushMessage, BushSlashMessage, Global } from '@lib';
-import { Argument } from 'discord-akairo';
export default class DisableCommand extends BushCommand {
public constructor() {
@@ -14,8 +13,7 @@ export default class DisableCommand extends BushCommand {
args: [
{
id: 'command',
- type: Argument.union('commandAlias', 'command'),
- match: 'phrase',
+ customType: util.arg.union('commandAlias', 'command'),
prompt: {
start: 'What command would you like to enable/disable?',
retry: '{error} Pick a valid command.',