From 07bd50ac39421db466141c62ce33c2ae4743ac0d Mon Sep 17 00:00:00 2001 From: zoey-on-github <88806187+zoey-on-github@users.noreply.github.com> Date: Wed, 27 Dec 2023 23:37:59 -0800 Subject: [PATCH] full on streamer mode check --- src/plugins/showMeYourName/index.tsx | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/plugins/showMeYourName/index.tsx b/src/plugins/showMeYourName/index.tsx index e12781f91..a38b6aafd 100644 --- a/src/plugins/showMeYourName/index.tsx +++ b/src/plugins/showMeYourName/index.tsx @@ -65,17 +65,21 @@ export default definePlugin({ const { nick } = author; const prefix = withMentionPrefix ? "@" : ""; - if (Vencord.Webpack.findStore("StreamerModeStore").enabled) { - console.log("test"); - return <>{prefix}{nick} {username[0]}...; - } if (username === nick || isRepliedMessage && !settings.store.inReplies) return prefix + nick; if (settings.store.mode === "user-nick") - return <>{prefix}{username} {nick}; + if (Vencord.Webpack.findStore("StreamerModeStore").enabled) { + return <>{prefix}{nick} {username[0]}...; + } else { + return <>{prefix}{username} {nick}; + } if (settings.store.mode === "nick-user") - return <>{prefix}{nick} {username}; + if (Vencord.Webpack.findStore("StreamerModeStore").enabled) { + return <>{prefix}{nick} {username[0]}...; + } else { + return <>{prefix}{nick} {username}; + } return prefix + username; } catch { return author?.nick;