aboutsummaryrefslogtreecommitdiff
path: root/src/commands/moderation/kick.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/moderation/kick.ts')
-rw-r--r--src/commands/moderation/kick.ts49
1 files changed, 19 insertions, 30 deletions
diff --git a/src/commands/moderation/kick.ts b/src/commands/moderation/kick.ts
index 1f1c2fb..9463154 100644
--- a/src/commands/moderation/kick.ts
+++ b/src/commands/moderation/kick.ts
@@ -5,51 +5,40 @@ export default class KickCommand extends BushCommand {
super('kick', {
aliases: ['kick'],
category: 'moderation',
- description: {
- content: 'Kick a user.',
- usage: ['kick <member> <reason>'],
- examples: ['kick @user bad']
- },
+ description: 'Kick a user.',
+ usage: ['kick <member> <reason>'],
+ examples: ['kick @user bad'],
args: [
{
id: 'user',
+ description: 'The user to kick.',
type: 'user',
- prompt: {
- start: 'What user would you like to kick?',
- retry: '{error} Choose a valid user to kick.'
- }
+ prompt: 'What user would you like to kick?',
+ retry: '{error} Choose a valid user to kick.',
+ slashType: 'USER'
},
{
id: 'reason',
+ description: 'The reason for the kick.',
type: 'string',
match: 'rest',
- prompt: {
- start: 'Why should this user be kicked?',
- retry: '{error} Choose a valid kick reason.',
- optional: true
- }
+ prompt: 'Why should this user be kicked?',
+ retry: '{error} Choose a valid kick reason.',
+ optional: true,
+ slashType: 'STRING'
},
{
id: 'force',
+ description: 'Override permission checks.',
flag: '--force',
- match: 'flag'
+ match: 'flag',
+ optional: true,
+ slashType: false,
+ only: 'text',
+ ownerOnly: true
}
],
slash: true,
- slashOptions: [
- {
- name: 'user',
- description: 'What user would you like to kick?',
- type: 'USER',
- required: true
- },
- {
- name: 'reason',
- description: 'Why should this user be kicked?',
- type: 'STRING',
- required: false
- }
- ],
clientPermissions: (m) => util.clientSendAndPermCheck(m, ['KICK_MEMBERS']),
userPermissions: ['KICK_MEMBERS']
});
@@ -77,7 +66,7 @@ export default class KickCommand extends BushCommand {
});
const responseMessage = () => {
- const victim = util.format.bold(member.user.tag);
+ const victim = util.format.input(member.user.tag);
switch (responseCode) {
case 'missing permissions':
return `${util.emojis.error} Could not kick ${victim} because I am missing the \`Kick Members\` permission.`;