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

@ -29,7 +29,7 @@
<PackageReference Include="Remora.Discord.Caching" Version="37.0.0" /> <PackageReference Include="Remora.Discord.Caching" Version="37.0.0" />
<PackageReference Include="Remora.Discord.Extensions" Version="5.3.2" /> <PackageReference Include="Remora.Discord.Extensions" Version="5.3.2" />
<PackageReference Include="Remora.Discord.Hosting" Version="6.0.7" /> <PackageReference Include="Remora.Discord.Hosting" Version="6.0.7" />
<PackageReference Include="Remora.Discord.Interactivity" Version="4.5.1" /> <PackageReference Include="Remora.Discord.Interactivity" Version="4.5.3" />
<PackageReference Include="Serilog.Extensions.Logging.File" Version="3.0.0" /> <PackageReference Include="Serilog.Extensions.Logging.File" Version="3.0.0" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>

View file

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

View file

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