Cast another net
This commit is contained in:
parent
70dce2667e
commit
f4cc93b07d
|
@ -65,6 +65,7 @@ BotClient.on(Events.InteractionCreate, async interaction => {
|
|||
});
|
||||
|
||||
BotClient.on(Events.MessageDelete, async message => {
|
||||
try {
|
||||
const guildId = message.guild?.id!;
|
||||
const messageId = message.id;
|
||||
const confessions = dt.getGuildInfo(guildId)?.confessions!;
|
||||
|
@ -74,6 +75,9 @@ BotClient.on(Events.MessageDelete, async message => {
|
|||
dt.adminDelConfession(guildId, confession.id);
|
||||
}
|
||||
}
|
||||
} catch (err) {
|
||||
logger.error("An error occured:", err);
|
||||
}
|
||||
});
|
||||
|
||||
BotClient.on(Events.InteractionCreate, async interaction => {
|
||||
|
|
Loading…
Reference in a new issue