From 1158f5616dc960453cfad6ceb4346acfb4b6027b Mon Sep 17 00:00:00 2001
From: Eazvy <57739965+Eazvy@users.noreply.github.com>
Date: Sun, 13 Apr 2025 21:49:01 -0400
Subject: [PATCH] update (userVoiceShow) avatar-size / guild icon animated /
user count (#231)
* Add files via upload
* Update components.tsx
* update horrible written logic
---
src/plugins/userVoiceShow/components.tsx | 32 ++++++++++++++++++++++--
src/plugins/userVoiceShow/index.tsx | 4 +--
2 files changed, 32 insertions(+), 4 deletions(-)
diff --git a/src/plugins/userVoiceShow/components.tsx b/src/plugins/userVoiceShow/components.tsx
index 9029cdc5..675588ed 100644
--- a/src/plugins/userVoiceShow/components.tsx
+++ b/src/plugins/userVoiceShow/components.tsx
@@ -111,9 +111,37 @@ function VoiceChannelTooltip({ channel, isLocked }: VoiceChannelTooltipProps) {
{guild.name}
)}
-
+
{channelIcon}
-
{channelName}
+
+ {channelName}
+
+
+
+ {users.length < 10 ? `0${users.length}` : `${users.length}`}
+
+
+ {channel.userLimit < 10 ? `0${channel.userLimit}` : `${channel.userLimit}`}
+
+
{isLocked ? : }
diff --git a/src/plugins/userVoiceShow/index.tsx b/src/plugins/userVoiceShow/index.tsx
index 3d119c43..67e5e022 100644
--- a/src/plugins/userVoiceShow/index.tsx
+++ b/src/plugins/userVoiceShow/index.tsx
@@ -21,7 +21,7 @@ import "./style.css";
import { addMemberListDecorator, removeMemberListDecorator } from "@api/MemberListDecorators";
import { addMessageDecoration, removeMessageDecoration } from "@api/MessageDecorations";
import { definePluginSettings } from "@api/Settings";
-import { Devs } from "@utils/constants";
+import { Devs, EquicordDevs } from "@utils/constants";
import definePlugin, { OptionType } from "@utils/types";
import { VoiceChannelIndicator } from "./components";
@@ -50,7 +50,7 @@ const settings = definePluginSettings({
export default definePlugin({
name: "UserVoiceShow",
description: "Shows an indicator when a user is in a Voice Channel",
- authors: [Devs.Nuckyz, Devs.LordElias],
+ authors: [Devs.Nuckyz, Devs.LordElias, EquicordDevs.omaw],
dependencies: ["MemberListDecoratorsAPI", "MessageDecorationsAPI"],
settings,