aboutsummaryrefslogtreecommitdiff
path: root/src/commands/moulberry-bush/rule.ts
diff options
context:
space:
mode:
authorTymanWasTaken <tyman@tyman.tech>2021-06-19 11:31:36 -0600
committerTymanWasTaken <tyman@tyman.tech>2021-06-19 11:31:36 -0600
commit873123996889c824c7d52785b7cf2903372b71a5 (patch)
tree00e811e9e9a43f030d6edc6e67f7064b04e37bc1 /src/commands/moulberry-bush/rule.ts
parentd055e0dbb86ef7fd4ee96a1531b51181e825fb4b (diff)
downloadtanzanite-873123996889c824c7d52785b7cf2903372b71a5.tar.gz
tanzanite-873123996889c824c7d52785b7cf2903372b71a5.tar.bz2
tanzanite-873123996889c824c7d52785b7cf2903372b71a5.zip
fix: Use latest features of akairo fork
Diffstat (limited to 'src/commands/moulberry-bush/rule.ts')
-rw-r--r--src/commands/moulberry-bush/rule.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/commands/moulberry-bush/rule.ts b/src/commands/moulberry-bush/rule.ts
index b71b42f..c11c5d2 100644
--- a/src/commands/moulberry-bush/rule.ts
+++ b/src/commands/moulberry-bush/rule.ts
@@ -1,5 +1,4 @@
import { Argument } from 'discord-akairo';
-import { ApplicationCommandOptionType } from 'discord-api-types';
import { CommandInteraction, Message, MessageEmbed, User } from 'discord.js';
import { BushCommand } from '../../lib/extensions/BushCommand';
import { BushInteractionMessage } from '../../lib/extensions/BushInteractionMessage';
@@ -98,20 +97,21 @@ export default class RuleCommand extends BushCommand {
],
clientPermissions: ['EMBED_LINKS', 'SEND_MESSAGES'],
channel: 'guild',
- slashCommandOptions: [
+ slashOptions: [
{
- type: ApplicationCommandOptionType.INTEGER,
+ type: 'INTEGER',
name: 'rule',
description: 'The rule to show',
required: false
},
{
- type: ApplicationCommandOptionType.USER,
+ type: 'USER',
name: 'user',
description: 'The user to ping',
required: false
}
- ]
+ ],
+ slash: true
});
}
private getResponse(