removed error response when proxy is sent without content

This commit is contained in:
Aster Fialla
2026-02-19 00:48:57 -05:00
parent a7cd4e96f0
commit f9199f8477
2 changed files with 0 additions and 9 deletions

View File

@@ -63,7 +63,6 @@ msgh.parseProxyTags = async function (authorId, content, attachmentUrl = null){
escapedPrefix = new RegExp("^" + escapedPrefix);
escapedSuffix = new RegExp(escapedSuffix + "$")
proxyMessage.message = content.replace(escapedPrefix, "").replace(escapedSuffix, "");
if (proxyMessage.message.length === 0 && !attachmentUrl) throw new Error(enums.err.NO_MESSAGE_SENT_WITH_PROXY);
}
}
})