small misc fixes

This commit is contained in:
Erik 2022-07-17 16:57:50 +03:00
parent a7e531afef
commit 722b514cef
Signed by untrusted user: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB
4 changed files with 5 additions and 5 deletions

View File

@ -210,8 +210,8 @@ Configure automatic infraction escalation & other automated moderation behaviour
// Grantable
[SETTING_GRANTABLE_HELP]
Require anyone without "Manage Roles" permission to only add or remove the specified roles.
This is primarily used for servers who grant the addrole/removerole commands via bot permissions.
Let anyone without "Manage Roles" permission to add or remove the specified roles.
Defines the roles that can be managed with the `/roles add|remove` command.
// Invite filter
[SETTING_INVITEFILTER_HELP]

View File

@ -169,7 +169,7 @@ class LinkFilterSetting extends FilterSetting {
return actionObject;
}
await response.delete();
if (['cancel', 'abort', 'exit'].includes(action.toLowerCase())) return {
if (['cancel', 'abort', 'exit'].includes(response.content.toLowerCase())) return {
error: true,
message: interaction.format('ERR_CANCEL')
};

View File

@ -170,7 +170,7 @@ class WordFilterSetting extends FilterSetting {
return actionObject;
}
await response.delete();
if (['cancel', 'abort', 'exit'].includes(action.toLowerCase())) return {
if (['cancel', 'abort', 'exit'].includes(response.content.toLowerCase())) return {
error: true,
message: interaction.format('ERR_CANCEL')
};

View File

@ -379,7 +379,7 @@ class FilterSetting extends Setting {
}),
color: 619452
};
if (embed.fields.length % 3 === 2) embed.fields.push({
if (embed.fields.length % 3 !== 2) embed.fields.push({
name: '\u200b',
value: '\u200b',
inline: true