mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-18 21:33:35 -05:00
IF ELSE HELL BABY!!!!!!!!!!
This commit is contained in:
parent
2a6079e9e3
commit
1a33639aa1
1 changed files with 8 additions and 11 deletions
|
@ -127,17 +127,14 @@ export default definePlugin({
|
|||
|
||||
renderIndicator: () => {
|
||||
const { mode } = Settings.plugins.ServerListIndicators;
|
||||
let text: string = `${onlineFriends} Friends, ${guildCount} Servers`;
|
||||
switch (mode) {
|
||||
case (!!(mode & IndicatorType.FRIEND)):
|
||||
text = `${onlineFriends} Friends`;
|
||||
break;
|
||||
case (!!(mode & IndicatorType.SERVER)):
|
||||
text = `${guildCount} Servers`;
|
||||
break;
|
||||
case (!!(mode & IndicatorType.FRIEND)) && (!!(mode & IndicatorType.SERVER)):
|
||||
text = `${onlineFriends} Friends, ${guildCount} Servers`;
|
||||
break;
|
||||
let text: string;
|
||||
|
||||
if (!!(mode & IndicatorType.FRIEND) && !!(mode & IndicatorType.SERVER)) {
|
||||
text = `${onlineFriends} Friends, ${guildCount} Servers`;
|
||||
} else if (!!(mode & IndicatorType.FRIEND)) {
|
||||
text = `${onlineFriends} Friends`;
|
||||
} else if (!!(mode & IndicatorType.SERVER)) {
|
||||
text = `${guildCount} Servers`;
|
||||
}
|
||||
|
||||
return <ErrorBoundary noop>
|
||||
|
|
Loading…
Reference in a new issue