1
0
Fork 1
mirror of https://github.com/TeamOctolings/Octobot.git synced 2025-05-04 04:56:30 +03:00

Bump the remora group with 4 updates (#259)

This commit is contained in:
dependabot[bot] 2024-02-06 12:09:26 +00:00 committed by GitHub
parent 5b4d581325
commit 5483bbd203
Signed by: GitHub
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View file

@ -101,10 +101,10 @@ public class ToolsCommandGroup : CommandGroup
{
var builder = new StringBuilder().AppendLine($"### <@{target.ID}>");
if (target.GlobalName is not null)
if (target.GlobalName.IsDefined(out var globalName))
{
builder.AppendBulletPointLine(Messages.UserInfoDisplayName)
.AppendLine(Markdown.InlineCode(target.GlobalName));
.AppendLine(Markdown.InlineCode(globalName));
}
builder.AppendBulletPointLine(Messages.UserInfoDiscordUserSince)

View file

@ -185,7 +185,7 @@ public sealed partial class MemberUpdateService : BackgroundService
{
var currentNickname = member.Nickname.IsDefined(out var nickname)
? nickname
: user.GlobalName ?? user.Username;
: user.GlobalName.OrDefault(user.Username);
var characterList = currentNickname.ToList();
var usernameChanged = false;
foreach (var character in currentNickname)