mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-01-29 18:56:22 +00:00
basic streamer mode check
This commit is contained in:
parent
5dee2e8549
commit
2ffa709d5a
2 changed files with 12 additions and 0 deletions
|
@ -88,6 +88,13 @@
|
||||||
"resolve-url": "*",
|
"resolve-url": "*",
|
||||||
"source-map-url": "*",
|
"source-map-url": "*",
|
||||||
"urix": "*"
|
"urix": "*"
|
||||||
|
},
|
||||||
|
"overrides": {
|
||||||
|
"jszip@<3.8.0": ">=3.8.0",
|
||||||
|
"decode-uri-component@<0.2.1": ">=0.2.1",
|
||||||
|
"postcss@<8.4.31": ">=8.4.31",
|
||||||
|
"semver@<5.7.2": ">=5.7.2",
|
||||||
|
"semver@>=7.0.0 <7.5.2": ">=7.5.2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"webExt": {
|
"webExt": {
|
||||||
|
|
|
@ -65,6 +65,11 @@ 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")
|
||||||
|
|
Loading…
Reference in a new issue