updated description
This commit is contained in:
parent
63c10d758c
commit
9b14538fe4
1 changed files with 5 additions and 5 deletions
|
@ -4,7 +4,7 @@ const whitelistWord = require('../../models').whitelistWord;
|
||||||
class whitelistWordCommand extends Command {
|
class whitelistWordCommand extends Command {
|
||||||
constructor() {
|
constructor() {
|
||||||
super('whitelistWord', {
|
super('whitelistWord', {
|
||||||
aliases: ['whitelistWord'],
|
aliases: ['whitelistWord', 'unwhitelistword'],
|
||||||
category: 'admin',
|
category: 'admin',
|
||||||
userPermissions: ['MANAGE_MESSAGES'],
|
userPermissions: ['MANAGE_MESSAGES'],
|
||||||
clientPermissions: ['MANAGE_MESSAGES', 'SEND_MESSAGES'],
|
clientPermissions: ['MANAGE_MESSAGES', 'SEND_MESSAGES'],
|
||||||
|
@ -27,9 +27,9 @@ class whitelistWordCommand extends Command {
|
||||||
],
|
],
|
||||||
channelRestriction: 'guild',
|
channelRestriction: 'guild',
|
||||||
description: {
|
description: {
|
||||||
content: 'Ban word on the server. use the unbanword alias to delete a banned word, unbanword alias and --removeaall to remove every banned word',
|
content: 'Whitelist word so it is not affected by the banned word, unwhitelistword alias and --removeaall to remove every banned whitelisted word',
|
||||||
usage: '[word to ban]',
|
usage: '[word to whitelist]',
|
||||||
examples: ['owo']
|
examples: ['sexuality']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -39,7 +39,7 @@ class whitelistWordCommand extends Command {
|
||||||
args.word = args.word.replace(/[\u0250-\ue007]/g, '');
|
args.word = args.word.replace(/[\u0250-\ue007]/g, '');
|
||||||
const WhitelistWord = await whitelistWord.findOne({where: {word: args.word.toLowerCase(), serverID: message.guild.id}});
|
const WhitelistWord = await whitelistWord.findOne({where: {word: args.word.toLowerCase(), serverID: message.guild.id}});
|
||||||
|
|
||||||
if (message.util.parsed.alias == 'unbanword') {
|
if (message.util.parsed.alias == 'unwhitelistword') {
|
||||||
if (args.removeall) {
|
if (args.removeall) {
|
||||||
whitelistWord.destroy({where: {serverID: message.guild.id}});
|
whitelistWord.destroy({where: {serverID: message.guild.id}});
|
||||||
return message.channel.send('The whitelisted words has been reset.');
|
return message.channel.send('The whitelisted words has been reset.');
|
||||||
|
|
Loading…
Reference in a new issue