1
0
Fork 1
mirror of https://github.com/Vendicated/Vencord.git synced 2025-01-29 18:56:22 +00:00

full on streamer mode check

This commit is contained in:
zoey-on-github 2023-12-27 23:37:59 -08:00
parent 2ffa709d5a
commit 07bd50ac39

View file

@ -65,17 +65,21 @@ export default definePlugin({
const { nick } = author; const { nick } = author;
const prefix = withMentionPrefix ? "@" : ""; const prefix = withMentionPrefix ? "@" : "";
if (Vencord.Webpack.findStore("StreamerModeStore").enabled) {
console.log("test");
return <>{prefix}{nick} <span className="vc-smyn-suffix">{username[0]}...</span></>;
}
if (username === nick || isRepliedMessage && !settings.store.inReplies) if (username === nick || isRepliedMessage && !settings.store.inReplies)
return prefix + nick; return prefix + nick;
if (settings.store.mode === "user-nick") if (settings.store.mode === "user-nick")
return <>{prefix}{username} <span className="vc-smyn-suffix">{nick}</span></>; if (Vencord.Webpack.findStore("StreamerModeStore").enabled) {
return <>{prefix}{nick} <span className="vc-smyn-suffix">{username[0]}...</span></>;
} else {
return <>{prefix}{username} <span className="vc-smyn-suffix">{nick}</span></>;
}
if (settings.store.mode === "nick-user") if (settings.store.mode === "nick-user")
return <>{prefix}{nick} <span className="vc-smyn-suffix">{username}</span></>; if (Vencord.Webpack.findStore("StreamerModeStore").enabled) {
return <>{prefix}{nick} <span className="vc-smyn-suffix">{username[0]}...</span></>;
} else {
return <>{prefix}{nick} <span className="vc-smyn-suffix">{username}</span></>;
}
return prefix + username; return prefix + username;
} catch { } catch {
return author?.nick; return author?.nick;