feat: react to messages when archiving fails

This commit is contained in:
Isaac 2025-02-12 21:12:08 +00:00
parent 673afa0ee0
commit fb0a23cef0
No known key found for this signature in database
GPG Key ID: 0DE40AE37BBA5C33
2 changed files with 2 additions and 0 deletions

View File

@ -192,6 +192,7 @@ module.exports = class extends Listener {
.catch(error => {
client.log.warn('Failed to archive message', message.id);
client.log.error(error);
message.react('❌').catch(client.log.error);
});
}

View File

@ -44,6 +44,7 @@ module.exports = class extends Listener {
} catch (error) {
client.log.warn('Failed to update archived message', newMessage.id);
client.log.error(error);
newMessage.react('❌').catch(client.log.error);
}
}