'say' command now checks length of args so it doesn't attempt to send an empty message.

This commit is contained in:
SileNce5k 2021-02-17 03:19:53 +01:00
parent 4b780e0bf1
commit 310d737201
No known key found for this signature in database
GPG key ID: C507260E7F2583AD

View file

@ -2,6 +2,11 @@ module.exports = {
name: 'say',
description: 'Repeats arguments',
execute(message, args) {
if(args.length == 0){
message.channel.send("Can't send empty message");
}else
message.channel.send(args.join(" "))
}
};