mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
Fix "Server voice muted" being true even if self-muted, misleading mods
Instead split the options into all four, from mute and deaf to selfMute, selfDeaf, serverMute and serverDeaf. This should provide a lot more clarity.
This commit is contained in:
parent
d60d2bc568
commit
d60c29e5a3
1 changed files with 6 additions and 3 deletions
|
@ -10,6 +10,7 @@ import {
|
|||
resolveMember,
|
||||
resolveUser,
|
||||
sorter,
|
||||
trimEmptyLines,
|
||||
trimLines,
|
||||
UnknownUser,
|
||||
} from "../../../utils";
|
||||
|
@ -124,10 +125,12 @@ export async function getUserInfoEmbed(
|
|||
if (voiceChannel || member.voice.mute || member.voice.deaf) {
|
||||
embed.fields.push({
|
||||
name: preEmbedPadding + "Voice information",
|
||||
value: trimLines(`
|
||||
value: trimEmptyLines(`
|
||||
${voiceChannel ? `Current voice channel: **${voiceChannel.name ?? "None"}**` : ""}
|
||||
${member.voice.mute ? "Server voice muted: **Yes**" : ""}
|
||||
${member.voice.deaf ? "Server voice deafened: **Yes**" : ""}
|
||||
${member.voice.serverMute ? "Server-muted: **Yes**" : ""}
|
||||
${member.voice.serverDeaf ? "Server-deafened: **Yes**" : ""}
|
||||
${member.voice.selfMute ? "Self-muted: **Yes**" : ""}
|
||||
${member.voice.selfDeaf ? "Self-deafened: **Yes**" : ""}
|
||||
`),
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue