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

remove console.log statement and fix behavior for other settings for this plugin

This commit is contained in:
zoey-on-github 2023-12-28 22:20:17 -08:00
parent 4faaa1382e
commit 5f49860fd9

View file

@ -69,18 +69,21 @@ export default definePlugin({
return prefix + nick;
if (settings.store.mode === "user-nick")
if (StreamerMode.enabled) {
return <>{prefix}{username} <span className="vc-smyn-suffix">{nick}...</span></>;
return <>{prefix}{username[0]}... <span className="vc-smyn-suffix">{nick}</span></>;
} else {
return <>{prefix}{username} <span className="vc-smyn-suffix">{nick}</span></>;
}
if (settings.store.mode === "nick-user")
if (StreamerMode.enabled) {
console.log("yeah");
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;
if (StreamerMode.enabled) {
return prefix + username[0] + "...";
} else {
return prefix + username;
}
} catch {
return author?.nick;
}