This commit is contained in:
Erik 2022-05-06 13:46:19 +03:00
parent b288a5523b
commit 3d05d00236
Signed by untrusted user: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB
2 changed files with 8 additions and 4 deletions

View File

@ -123,6 +123,7 @@ class CaseCommand extends SlashCommand {
};
if (change.type === 'RESOLVE') field.value += '\n' + invoker.format('COMMAND_CASE_CHANGES_RESOLVE', { reason: change.reason || invoker.format('COMMAND_CASE_CHANGE_NOREASON') });
if (change.type === 'UNRESOLVE') field.value += '\n' + invoker.format('COMMAND_CASE_CHANGES_RESOLVE', { reason: change.reason || invoker.format('COMMAND_CASE_CHANGE_NOREASON') });
if (change.type === 'REASON') field.value += '\n' + invoker.format('COMMAND_CASE_CHANGES_REASON', { reason: change.reason });
if (change.type === 'DURATION') field.value += '\n' + invoker.format('COMMAND_CASE_CHANGES_DURATION', { duration: Util.humanise(Math.floor(change.duration/1000)) });
if (change.type === 'POINTS') field.value += '\n' + invoker.format('COMMAND_CASE_CHANGES_POINTS', { points: change.points });

View File

@ -16,16 +16,19 @@ class AddroleCommand extends ModerationCommand {
type: 'SUB_COMMAND',
options: [{
name: 'roles',
description: '',
type: 'ROLES'
description: 'Which roles to add/take',
type: 'ROLES',
required: true
}, {
name: 'users',
type: 'MEMBERS',
description: ''
description: 'Who to give to/take from',
required: true
}]
},
],
memberPermissions: ['MANAGE_ROLES']
memberPermissions: ['MANAGE_ROLES'],
skipOptions: ['points', 'expiration', 'force', 'prune']
});
}