@KrystalSkullOfficial Bot Tag Fix

This commit is contained in:
thororen1234 2024-11-05 17:34:55 -05:00
parent 2cfb68ae56
commit 7ff8ee8001

View file

@ -301,6 +301,7 @@ export default definePlugin({
const [tagName, variant] = passedTagName.split("-");
if (!passedTagName) return getIntlMessage("APP_TAG");
const tag = tags.find(({ name }) => tagName === name);
if (!tag && Settings.plugins.NoAppsAllowed.enabled) return "BOT";
if (!tag) return getIntlMessage("APP_TAG");
if (variant === "BOT" && tagName !== "WEBHOOK" && this.settings.store.dontShowForBots) return getIntlMessage("APP_TAG");