From 2428321448616d8d69c61858c7e6fba462bdadda Mon Sep 17 00:00:00 2001 From: SileNce5k Date: Mon, 1 Mar 2021 19:41:55 +0100 Subject: [PATCH] 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 --- commands/say.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/commands/say.js b/commands/say.js index 707a50b..b4d987a 100644 --- a/commands/say.js +++ b/commands/say.js @@ -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() + } } }; \ No newline at end of file