mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-01-31 09:09:00 +03:00
Bump the remora group with 4 updates (#259)
This commit is contained in:
parent
5b4d581325
commit
5483bbd203
3 changed files with 4 additions and 4 deletions
|
@ -29,7 +29,7 @@
|
|||
<PackageReference Include="Remora.Discord.Caching" Version="37.0.0" />
|
||||
<PackageReference Include="Remora.Discord.Extensions" Version="5.3.2" />
|
||||
<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" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue