mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 17:43:30 +01:00
Added deleting messages
This commit is contained in:
@@ -10,8 +10,8 @@ a.on("debug", function (m) {
|
||||
});
|
||||
|
||||
a.on("message", function (m) {
|
||||
if (m.content === "$$$") a.reply(m, "hi man!")["catch"](function (e) {
|
||||
return console.log(e.stack);
|
||||
if (m.content === "$$$") a.reply(m, "hi man!").then(function (m) {
|
||||
a.deleteMessage(m);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user