misc stuff
This commit is contained in:
parent
3b66549686
commit
a313ddf53f
@ -19,7 +19,7 @@ class ModerationLogsSetting extends Setting {
|
|||||||
usage: '<method|value> [value..]',
|
usage: '<method|value> [value..]',
|
||||||
resolve: 'GUILD',
|
resolve: 'GUILD',
|
||||||
examples: [
|
examples: [
|
||||||
'modlog <add|remove|list> <infraction-type..>',
|
'modlog add|remove|list <infraction-type..>',
|
||||||
'modlog #moderation-log',
|
'modlog #moderation-log',
|
||||||
'modlog reset',
|
'modlog reset',
|
||||||
'modlog off'
|
'modlog off'
|
||||||
@ -38,7 +38,7 @@ class ModerationLogsSetting extends Setting {
|
|||||||
|
|
||||||
const { guild } = message;
|
const { guild } = message;
|
||||||
const setting = guild._settings.moderationLog;
|
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) {
|
if (response) {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user