word.toLowerCase() cause issue??

This commit is contained in:
Supositware 2019-02-26 15:10:34 +01:00
parent 656bfc5ce1
commit 4e32ff8611
2 changed files with 5 additions and 7 deletions

View file

@ -10,7 +10,8 @@ class censorCommand extends Command {
args: [
{
id: 'word',
type: 'string'
type: 'string',
match: 'rest'
}
],
description: {
@ -24,8 +25,6 @@ class censorCommand extends Command {
async exec(message, args) {
let word = args.word;
word = word.toLowerCase();
let words = [];
let json = JSON.stringify(words);

View file

@ -10,7 +10,8 @@ class uncensorCommand extends Command {
args: [
{
id: 'word',
type: 'string'
type: 'string',
match: 'rest'
}
],
description: {
@ -23,9 +24,7 @@ class uncensorCommand extends Command {
async exec(message, args) {
let word = args.word;
word = word.toLowerCase();
let words = [];
let json = JSON.stringify(words);