From 22c68df9756bd751488b0fd8a23f99e95d9c292a Mon Sep 17 00:00:00 2001
From: zoey-on-github <88806187+zoey-on-github@users.noreply.github.com>
Date: Thu, 28 Dec 2023 21:13:19 -0800
Subject: [PATCH] boolean now
---
src/plugins/showMeYourName/index.tsx | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/plugins/showMeYourName/index.tsx b/src/plugins/showMeYourName/index.tsx
index a38b6aafd..a70b26224 100644
--- a/src/plugins/showMeYourName/index.tsx
+++ b/src/plugins/showMeYourName/index.tsx
@@ -19,6 +19,9 @@ interface UsernameProps {
userOverride?: User;
}
+if (Vencord.Webpack.findStoreLazy("StreamerModeStore").enabled) {
+ var Streamer = new Boolean(true);
+}
const settings = definePluginSettings({
mode: {
type: OptionType.SELECT,
@@ -65,17 +68,16 @@ export default definePlugin({
const { nick } = author;
const prefix = withMentionPrefix ? "@" : "";
-
if (username === nick || isRepliedMessage && !settings.store.inReplies)
return prefix + nick;
if (settings.store.mode === "user-nick")
- if (Vencord.Webpack.findStore("StreamerModeStore").enabled) {
+ if (Streamer) {
return <>{prefix}{nick} {username[0]}...>;
} else {
return <>{prefix}{username} {nick}>;
}
if (settings.store.mode === "nick-user")
- if (Vencord.Webpack.findStore("StreamerModeStore").enabled) {
+ if (Streamer) {
return <>{prefix}{nick} {username[0]}...>;
} else {
return <>{prefix}{nick} {username}>;