mirror of
https://github.com/System-End/Vencord.git
synced 2026-04-19 20:55:13 +00:00
VcNarrator: make nickname fallback to displayName instead of username (#3564)
This commit is contained in:
parent
b881b60ff7
commit
dfbffd1342
1 changed files with 1 additions and 1 deletions
|
|
@ -181,7 +181,7 @@ export default definePlugin({
|
|||
const template = settings.store[type + "Message"];
|
||||
const user = isMe && !settings.store.sayOwnName ? "" : UserStore.getUser(userId).username;
|
||||
const displayName = user && ((UserStore.getUser(userId) as any).globalName ?? user);
|
||||
const nickname = user && (GuildMemberStore.getNick(myGuildId!, userId) ?? user);
|
||||
const nickname = user && (GuildMemberStore.getNick(myGuildId!, userId) ?? displayName);
|
||||
const channel = ChannelStore.getChannel(id).name;
|
||||
|
||||
speak(formatText(template, user, channel, displayName, nickname));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue