forked from Galactic/galactic-bot
cleanup
This commit is contained in:
parent
b288a5523b
commit
3d05d00236
@ -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 });
|
||||
|
@ -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']
|
||||
});
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user