'say' command now checks length of args so it doesn't attempt to send an empty message.
This commit is contained in:
parent
4b780e0bf1
commit
310d737201
1 changed files with 5 additions and 0 deletions
|
@ -2,6 +2,11 @@ module.exports = {
|
||||||
name: 'say',
|
name: 'say',
|
||||||
description: 'Repeats arguments',
|
description: 'Repeats arguments',
|
||||||
execute(message, args) {
|
execute(message, args) {
|
||||||
|
|
||||||
|
if(args.length == 0){
|
||||||
|
message.channel.send("Can't send empty message");
|
||||||
|
}else
|
||||||
message.channel.send(args.join(" "))
|
message.channel.send(args.join(" "))
|
||||||
|
|
||||||
}
|
}
|
||||||
};
|
};
|
Loading…
Add table
Reference in a new issue