diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-11-28 09:27:41 -0500 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-11-28 09:27:41 -0500 |
commit | 453683b57b8ff013ff25e2aaa4aa1d2e047edcb7 (patch) | |
tree | 8b98d2f30dbb6a8448602446cfacf9091667cc33 /src/commands/moderation/evidence.ts | |
parent | de4c3dcaf172804d34ae708be1ed3e75af42f4d5 (diff) | |
download | tanzanite-453683b57b8ff013ff25e2aaa4aa1d2e047edcb7.tar.gz tanzanite-453683b57b8ff013ff25e2aaa4aa1d2e047edcb7.tar.bz2 tanzanite-453683b57b8ff013ff25e2aaa4aa1d2e047edcb7.zip |
a few small changes
Diffstat (limited to 'src/commands/moderation/evidence.ts')
-rw-r--r-- | src/commands/moderation/evidence.ts | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/src/commands/moderation/evidence.ts b/src/commands/moderation/evidence.ts index 0204d84..714a2e5 100644 --- a/src/commands/moderation/evidence.ts +++ b/src/commands/moderation/evidence.ts @@ -6,26 +6,28 @@ export default class EvidenceCommand extends BushCommand { super('evidence', { aliases: ['evidence'], category: 'moderation', - description: { - content: 'Add evidence to a modlog case.', - usage: ['evidence <case_id> <evidence>'], - examples: ['evidence '] - }, - slash: true, - slashOptions: [ + description: 'Add evidence to a modlog case.', + usage: ['evidence <case_id> <evidence>'], + examples: ['evidence 9210b1ea-91f5-4ea2-801b-02b394469c77 was spamming in #general'], + args: [ { - name: 'case_id', - description: 'What case would you like to modify the evidence of?', - type: 'STRING', - required: true + id: 'case_id', + description: 'The case to modify the evidence of.', + type: 'string', + prompt: 'What case would you like to modify the evidence of?', + slashType: 'STRING', + only: 'slash' }, { - name: 'evidence', - description: 'What would you like to modify the evidence to?', - type: 'STRING', - required: true + id: 'evidence', + description: 'The value to set the evidence to.', + type: 'string', + prompt: 'What would you like to modify the evidence to?', + slashType: 'STRING', + only: 'slash' } ], + slash: true, channel: 'guild', clientPermissions: (m) => util.clientSendAndPermCheck(m), userPermissions: (m) => util.userGuildPermCheck(m, ['MANAGE_MESSAGES']) |