Refactor autodelete functionality

This commit is contained in:
2025-04-10 15:07:02 -04:00
parent c16e55d56c
commit ddf4c6ae15
3 changed files with 148 additions and 29 deletions

4
commands/react.js vendored
View File

@@ -8,7 +8,7 @@ module.exports = {
if (message.client.targetReactUserIds && message.client.reactEmojis) {
const statusMsg = await message.channel.send(
`Currently reacting to messages from the following users: ${message.client.targetReactUserIds
.map(id => `<@${id}>`)
.map(id => `User ID: ${id}`)
.join(', ')} with the following emojis: ${message.client.reactEmojis.join(' ')}.`
);
setTimeout(() => statusMsg.delete().catch(console.error), deleteTimeout);
@@ -49,7 +49,7 @@ module.exports = {
const confirmationMsg = await message.channel.send(
`I will now react to messages from the following users: ${targetIds
.map(id => `<@${id}>`)
.map(id => `User ID: ${id}`)
.join(', ')} with the following emojis: ${emojis.join(' ')}.`
);
setTimeout(() => confirmationMsg.delete().catch(console.error), deleteTimeout);