aboutsummaryrefslogtreecommitdiff
path: root/src/commands/moulberry-bush/rule.ts
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/moulberry-bush/rule.ts
parentf5c2b7b946487c2828365cc63bc6f471dd6cfc2f (diff)
downloadtanzanite-70fac30661ee06b07baceed6e44880b16e244626.tar.gz
tanzanite-70fac30661ee06b07baceed6e44880b16e244626.tar.bz2
tanzanite-70fac30661ee06b07baceed6e44880b16e244626.zip
general clean up and fix automod
Diffstat (limited to 'src/commands/moulberry-bush/rule.ts')
-rw-r--r--src/commands/moulberry-bush/rule.ts5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/commands/moulberry-bush/rule.ts b/src/commands/moulberry-bush/rule.ts
index 1681a1b..41dd8de 100644
--- a/src/commands/moulberry-bush/rule.ts
+++ b/src/commands/moulberry-bush/rule.ts
@@ -1,4 +1,3 @@
-import { Argument, Constants } from 'discord-akairo';
import { MessageEmbed, User } from 'discord.js';
import { AllowedMentions, BushCommand, BushMessage } from '../../lib';
@@ -65,8 +64,7 @@ export default class RuleCommand extends BushCommand {
args: [
{
id: 'rule',
- type: Argument.range(Constants.ArgumentTypes.INTEGER, 1, rules.length, true),
- match: Constants.ArgumentMatches.PHRASE,
+ customType: util.arg.range('integer', 1, rules.length, true),
prompt: {
start: 'What rule would you like to have cited?',
retry: '{error} Choose a valid rule.',
@@ -76,7 +74,6 @@ export default class RuleCommand extends BushCommand {
{
id: 'user',
type: 'user',
- match: Constants.ArgumentMatches.PHRASE,
prompt: {
start: 'What user would you like to mention?',
retry: '{error} Choose a valid user to mention.',