aboutsummaryrefslogtreecommitdiff
path: root/src/commands/config
diff options
context:
space:
mode:
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.',