This commit is contained in:
JandereDev 2022-05-31 07:18:54 +02:00
parent 369a151f53
commit 6b5df8c33a
No known key found for this signature in database
GPG key ID: 5D5E18ACB990F57A

View file

@ -27,7 +27,7 @@ client.on('messageDelete', async message => {
]);
if (!bridgedMsg?.revolt) return logger.debug(`Discord: Message has not been bridged; ignoring deletion`);
if (!bridgedMsg.ignore) return logger.debug(`Discord: Message marked as ignore`);
if (bridgedMsg.ignore) return logger.debug(`Discord: Message marked as ignore`);
if (!bridgeCfg?.revolt) return logger.debug(`Discord: No Revolt channel associated`);
const targetMsg = await revoltFetchMessage(bridgedMsg.revolt.messageId, revoltClient.channels.get(bridgeCfg.revolt));
@ -52,7 +52,7 @@ client.on('messageUpdate', async (oldMsg, newMsg) => {
]);
if (!bridgedMsg) return logger.debug(`Discord: Message has not been bridged; ignoring edit`);
if (!bridgedMsg.ignore) return logger.debug(`Discord: Message marked as ignore`);
if (bridgedMsg.ignore) return logger.debug(`Discord: Message marked as ignore`);
if (!bridgeCfg?.revolt) return logger.debug(`Discord: No Revolt channel associated`);
if (newMsg.webhookId && newMsg.webhookId == bridgeCfg.discordWebhook?.id) {
return logger.debug(`Discord: Message was sent by bridge; ignoring edit`);