mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-01-29 18:56:22 +00:00
boolean now
This commit is contained in:
parent
07bd50ac39
commit
22c68df975
1 changed files with 5 additions and 3 deletions
|
@ -19,6 +19,9 @@ interface UsernameProps {
|
||||||
userOverride?: User;
|
userOverride?: User;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Vencord.Webpack.findStoreLazy("StreamerModeStore").enabled) {
|
||||||
|
var Streamer = new Boolean(true);
|
||||||
|
}
|
||||||
const settings = definePluginSettings({
|
const settings = definePluginSettings({
|
||||||
mode: {
|
mode: {
|
||||||
type: OptionType.SELECT,
|
type: OptionType.SELECT,
|
||||||
|
@ -65,17 +68,16 @@ export default definePlugin({
|
||||||
|
|
||||||
const { nick } = author;
|
const { nick } = author;
|
||||||
const prefix = withMentionPrefix ? "@" : "";
|
const prefix = withMentionPrefix ? "@" : "";
|
||||||
|
|
||||||
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")
|
||||||
if (Vencord.Webpack.findStore("StreamerModeStore").enabled) {
|
if (Streamer) {
|
||||||
return <>{prefix}{nick} <span className="vc-smyn-suffix">{username[0]}...</span></>;
|
return <>{prefix}{nick} <span className="vc-smyn-suffix">{username[0]}...</span></>;
|
||||||
} else {
|
} else {
|
||||||
return <>{prefix}{username} <span className="vc-smyn-suffix">{nick}</span></>;
|
return <>{prefix}{username} <span className="vc-smyn-suffix">{nick}</span></>;
|
||||||
}
|
}
|
||||||
if (settings.store.mode === "nick-user")
|
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></>;
|
return <>{prefix}{nick} <span className="vc-smyn-suffix">{username[0]}...</span></>;
|
||||||
} else {
|
} else {
|
||||||
return <>{prefix}{nick} <span className="vc-smyn-suffix">{username}</span></>;
|
return <>{prefix}{nick} <span className="vc-smyn-suffix">{username}</span></>;
|
||||||
|
|
Loading…
Reference in a new issue