add reason for delete

This commit is contained in:
loicbersier 2019-08-21 21:34:38 +02:00
parent fd14f3b55f
commit 3021c249f6

View file

@ -34,7 +34,7 @@ class messageListener extends Listener {
.setDescription(censoredMessage); .setDescription(censoredMessage);
message.channel.send(Embed); message.channel.send(Embed);
return message.delete(); return message.delete({reason: `Deleted message: ${message.content}`});
} }
// auto responses // auto responses