RPCS3/discord-bot

Username emojis do not work

MSuih opened this issue · 0 comments

MSuih commented

The username emojis in here do not print anything if the emoji is supplied as a direct emoji instead of the text representation.

private static DiscordEmoji? GetUserNameEmoji(DiscordClient client, string githubLogin)
=> client.GetEmoji(githubLogin switch
{
#if DEBUG
_ => client.Guilds.Values.FirstOrDefault()?.Emojis.Values.ToList().RandomElement(githubLogin.GetHashCode())?.GetDiscordName(),
#else
"Nekotekina" => ":nekotekina:",
"kd-11" => ":kd11:",
"Megamouse" => ":megamouse:",
"elad335" => ":elad:",
"hcorion" => ":hcorion:",
"AniLeo" => ":ani:",
"Talkashie" => ":font:",
"jarveson" => ":jarves:",
"xddxd" => ":kekw:",
"isJuhn" => "😺",
"13xforever" => "💮",
"RipleyTom" => ":galciv:",
"Whatcookie" => "🍪",
"clienthax" => ":gooseknife:",
/*
"VelocityRa" => null,
"CookiePLMonster" => null,
"Ruipin" => null,
"rajkosto" => null,
"dio-gh" => null,
*/
_ => null,
#endif
});

So while f.ex. elad335 and Megamouse do print something, Whatcookie and isjuhn do not show any emojis.