diff --git a/src/index.ts b/src/index.ts index d874b03..2d9d512 100644 --- a/src/index.ts +++ b/src/index.ts @@ -200,4 +200,9 @@ bot.on('interactionCreate', async (interaction) => { } }); +bot.on('messageDelete', (msg) => { + console.log(`${msg.author?.username}#${msg.author?.discriminator} in #${msg.channel instanceof Discord.TextChannel ? msg.channel.name : '?'} at ${msg.createdAt.toISOString()}`); + console.log(`${msg.content}`); +}); + bot.login(token);