diff --git a/Hanekawa.Application/Handlers/Commands/Account/AccountCommandService.cs b/Hanekawa.Application/Handlers/Commands/Account/AccountCommandService.cs index 1a199724..ace5dbcb 100644 --- a/Hanekawa.Application/Handlers/Commands/Account/AccountCommandService.cs +++ b/Hanekawa.Application/Handlers/Commands/Account/AccountCommandService.cs @@ -1,7 +1,6 @@ using Hanekawa.Application.Extensions; using Hanekawa.Application.Interfaces; using Hanekawa.Entities.Discord; -using Hanekawa.Entities.Users; using Microsoft.EntityFrameworkCore; namespace Hanekawa.Application.Handlers.Commands.Account; diff --git a/Hanekawa.Bot/Mapper/DiscordMapper.cs b/Hanekawa.Bot/Mapper/DiscordMapper.cs index 9bfeb423..9d28847e 100644 --- a/Hanekawa.Bot/Mapper/DiscordMapper.cs +++ b/Hanekawa.Bot/Mapper/DiscordMapper.cs @@ -88,7 +88,7 @@ internal static DiscordMember ToDiscordMember(this IMember member) => { Id = e.Key.RawValue, Name = e.Value.Name - }).ToList() + }).ToArray() }, Nickname = member.Nick, IsBot = member.IsBot, @@ -111,7 +111,7 @@ internal static Guild ToGuild(this IMember user) => { Id = e.Key.RawValue, Name = e.Value.Name - }).ToList() + }).ToArray() }; internal static LocalInteractionMessageResponse ToLocalInteractionMessageResponse(this Response response) => diff --git a/Hanekawa/Entities/Discord/Guild.cs b/Hanekawa/Entities/Discord/Guild.cs index 11df5dd1..15d798b2 100644 --- a/Hanekawa/Entities/Discord/Guild.cs +++ b/Hanekawa/Entities/Discord/Guild.cs @@ -1,6 +1,4 @@ -using System.Collections.Generic; - -namespace Hanekawa.Entities.Discord; +namespace Hanekawa.Entities.Discord; public class Guild : SimpleGuild { @@ -9,5 +7,5 @@ public class Guild : SimpleGuild public int EmoteCount { get; set; } public int? BoostCount { get; set; } public int BoostTier { get; set; } - public List Emotes = new(); + public Emote[] Emotes = []; } \ No newline at end of file