1
0
Fork 1
mirror of https://github.com/Vendicated/Vencord.git synced 2025-01-28 02:06:23 +00:00

boolean now

This commit is contained in:
zoey-on-github 2023-12-28 21:13:19 -08:00
parent 07bd50ac39
commit 22c68df975

View file

@ -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} <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 (Vencord.Webpack.findStore("StreamerModeStore").enabled) {
if (Streamer) {
return <>{prefix}{nick} <span className="vc-smyn-suffix">{username[0]}...</span></>;
} else {
return <>{prefix}{nick} <span className="vc-smyn-suffix">{username}</span></>;