misc stuff

This commit is contained in:
Erik 2020-07-11 23:37:09 +03:00
parent 3b66549686
commit a313ddf53f

View File

@ -19,7 +19,7 @@ class ModerationLogsSetting extends Setting {
usage: '<method|value> [value..]',
resolve: 'GUILD',
examples: [
'modlog <add|remove|list> <infraction-type..>',
'modlog add|remove|list <infraction-type..>',
'modlog #moderation-log',
'modlog reset',
'modlog off'
@ -38,7 +38,7 @@ class ModerationLogsSetting extends Setting {
const { guild } = message;
const setting = guild._settings.moderationLog;
const response = await this.resolveMethod(params, CONSTANTS.INFRACTIONS, setting.infractions);
const response = await this.resolveMethod(params.map((p) => p.toUpperCase()), CONSTANTS.INFRACTIONS, setting.infractions);
if (response) {