diff --git a/src/equicordplugins/voiceChannelLog/components/VoiceChannelLogEntryComponent.css b/src/equicordplugins/voiceChannelLog/components/VoiceChannelLogEntryComponent.css
index 2dce0e54..2757996f 100644
--- a/src/equicordplugins/voiceChannelLog/components/VoiceChannelLogEntryComponent.css
+++ b/src/equicordplugins/voiceChannelLog/components/VoiceChannelLogEntryComponent.css
@@ -32,7 +32,8 @@
text-align: center;
margin-top: 10px;
padding-left: 10px;
- padding-right: 10px
+ padding-right: 10px;
+ cursor: pointer;
}
.vc-voice-channel-log-icon {
diff --git a/src/equicordplugins/voiceChannelLog/components/VoiceChannelLogEntryComponent.tsx b/src/equicordplugins/voiceChannelLog/components/VoiceChannelLogEntryComponent.tsx
index 79b1990f..14758bce 100644
--- a/src/equicordplugins/voiceChannelLog/components/VoiceChannelLogEntryComponent.tsx
+++ b/src/equicordplugins/voiceChannelLog/components/VoiceChannelLogEntryComponent.tsx
@@ -7,7 +7,7 @@
import "./VoiceChannelLogEntryComponent.css";
import { classes } from "@utils/misc";
-import { React, Timestamp, UserStore } from "@webpack/common";
+import { React, Timestamp, Tooltip, UserStore } from "@webpack/common";
import { Channel } from "discord-types/general";
import { Util } from "Vencord";
@@ -20,11 +20,16 @@ export function VoiceChannelLogEntryComponent({ logEntry, channel }: { logEntry:
return
-
Util.openUserProfile(logEntry.userId)}
- src={user.getAvatarURL(channel.getGuildId())}
- />
+
+ {(tooltipProps: any) => (
+
Util.openUserProfile(logEntry.userId)}
+ src={user.getAvatarURL(channel.getGuildId())}
+ />
+ )}
+
{ }
diff --git a/src/equicordplugins/voiceChannelLog/index.tsx b/src/equicordplugins/voiceChannelLog/index.tsx
index 3d0631ca..5e5e7f44 100644
--- a/src/equicordplugins/voiceChannelLog/index.tsx
+++ b/src/equicordplugins/voiceChannelLog/index.tsx
@@ -119,7 +119,10 @@ export default definePlugin({
const clientUserId = UserStore.getCurrentUser().id;
voiceStates.forEach(state => {
// mmmm hacky workaround
+ console.log(state);
const { userId, channelId } = state;
+ const user = UserStore.getUser(userId) as User & { globalName: string; };
+ const username = user.globalName || user.username;
let { oldChannelId } = state;
if (userId === clientUserId && channelId !== clientOldChannelId) {
oldChannelId = clientOldChannelId;
@@ -131,6 +134,7 @@ export default definePlugin({
const logEntry = {
userId,
+ username,
oldChannel: oldChannelId || null,
newChannel: channelId || null,
timestamp: new Date()
diff --git a/src/equicordplugins/voiceChannelLog/logs.ts b/src/equicordplugins/voiceChannelLog/logs.ts
index 9e165180..6fefe4ba 100644
--- a/src/equicordplugins/voiceChannelLog/logs.ts
+++ b/src/equicordplugins/voiceChannelLog/logs.ts
@@ -6,6 +6,7 @@
export interface VoiceChannelLogEntry {
userId: string;
+ username: string;
oldChannel: string | null;
newChannel: string | null;
timestamp: Date;