@ -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);