removed some overzealous error handling

This commit is contained in:
Aster Fialla
2026-02-15 16:48:22 -05:00
parent 75dba413b8
commit 8f70960079
3 changed files with 3 additions and 5 deletions

View File

@@ -17,7 +17,7 @@ const name = 'PluralFlux Proxy Webhook';
wh.sendMessageAsMember = async function(client, message, content) {
const proxyMatch = await messageHelper.parseProxyTags(message.author.id, message.attachments[0] ?? null, content).catch(e =>{throw e});
// If the message doesn't match a proxy, just return.
if (!proxyMatch.proxy) {
if (!proxyMatch || !proxyMatch.proxy) {
return;
}
// If the message does match a proxy but is in a guild server