mirror of
https://github.com/Equicord/Equicord.git
synced 2025-02-07 10:34:12 -05:00
@KrystalSkullOfficial Bot Tag Fix
This commit is contained in:
parent
2cfb68ae56
commit
7ff8ee8001
1 changed files with 1 additions and 0 deletions
|
@ -301,6 +301,7 @@ export default definePlugin({
|
||||||
const [tagName, variant] = passedTagName.split("-");
|
const [tagName, variant] = passedTagName.split("-");
|
||||||
if (!passedTagName) return getIntlMessage("APP_TAG");
|
if (!passedTagName) return getIntlMessage("APP_TAG");
|
||||||
const tag = tags.find(({ name }) => tagName === name);
|
const tag = tags.find(({ name }) => tagName === name);
|
||||||
|
if (!tag && Settings.plugins.NoAppsAllowed.enabled) return "BOT";
|
||||||
if (!tag) return getIntlMessage("APP_TAG");
|
if (!tag) return getIntlMessage("APP_TAG");
|
||||||
if (variant === "BOT" && tagName !== "WEBHOOK" && this.settings.store.dontShowForBots) return getIntlMessage("APP_TAG");
|
if (variant === "BOT" && tagName !== "WEBHOOK" && this.settings.store.dontShowForBots) return getIntlMessage("APP_TAG");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue