Say command now deletes the message it is repeating
Doesn't check for permissions, so there'll be an error if the bot can't delete the message
This commit is contained in:
parent
2e64fa7bd6
commit
2428321448
1 changed files with 3 additions and 1 deletions
|
@ -5,8 +5,10 @@ module.exports = {
|
|||
|
||||
if(args.length == 0)
|
||||
message.channel.send("Can't send empty message");
|
||||
else
|
||||
else{
|
||||
message.channel.send(args.join(" "))
|
||||
message.delete()
|
||||
}
|
||||
|
||||
}
|
||||
};
|
Loading…
Add table
Reference in a new issue