Forward redaction errors to error handler
This commit is contained in:
parent
5f0e765934
commit
b6b65992f7
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ async function deleteMessage(event) {
|
||||||
db.prepare("DELETE FROM event_message WHERE event_id = ?").run(event.event_id)
|
db.prepare("DELETE FROM event_message WHERE event_id = ?").run(event.event_id)
|
||||||
for (const row of rows) {
|
for (const row of rows) {
|
||||||
db.prepare("DELETE FROM message_channel WHERE message_id = ?").run(row.message_id)
|
db.prepare("DELETE FROM message_channel WHERE message_id = ?").run(row.message_id)
|
||||||
discord.snow.channel.deleteMessage(row.channel_id, row.message_id, event.content.reason)
|
await discord.snow.channel.deleteMessage(row.channel_id, row.message_id, event.content.reason)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue