CommandContext
// from a command
async run(ctx) {
ctx.send(`${ctx.commandName} executed by ${ctx.user} in ${ctx.channel} !`);
ctx.react('π');
ctx.send('I will now destroy your message in 10 seconds...');
ctx.deleteMessage(10000);
}Last updated