FullVCPFP: Use server profile pictures
This commit is contained in:
parent
b3223a8a37
commit
2196fbad2f
1 changed files with 2 additions and 1 deletions
|
|
@ -6,6 +6,7 @@
|
||||||
|
|
||||||
import { disableStyle, enableStyle } from "@api/Styles";
|
import { disableStyle, enableStyle } from "@api/Styles";
|
||||||
import { EquicordDevs } from "@utils/constants";
|
import { EquicordDevs } from "@utils/constants";
|
||||||
|
import { getUserAvatarUrl } from "@utils/misc";
|
||||||
import definePlugin from "@utils/types";
|
import definePlugin from "@utils/types";
|
||||||
import { ChannelRTCStore, ChannelStore, UserStore, VoiceStateStore } from "@webpack/common";
|
import { ChannelRTCStore, ChannelStore, UserStore, VoiceStateStore } from "@webpack/common";
|
||||||
|
|
||||||
|
|
@ -37,7 +38,7 @@ export default definePlugin({
|
||||||
|
|
||||||
const guildId = ChannelStore.getChannel(channelId)?.guild_id;
|
const guildId = ChannelStore.getChannel(channelId)?.guild_id;
|
||||||
const isSpeaking = ChannelRTCStore.getSpeakingParticipants(channelId).some(p => p.user.id === participantUserId && p.speaking);
|
const isSpeaking = ChannelRTCStore.getSpeakingParticipants(channelId).some(p => p.user.id === participantUserId && p.speaking);
|
||||||
const avatarUrl = user.getAvatarURL(guildId, 1024, isSpeaking);
|
const avatarUrl = getUserAvatarUrl(user, guildId, isSpeaking, 1024);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"--full-res-avatar": `url(${avatarUrl})`
|
"--full-res-avatar": `url(${avatarUrl})`
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue