Skip to content

Commit

Permalink
minor mapping changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sphexator committed Mar 30, 2024
1 parent 56fd203 commit 0477ff7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
4 changes: 2 additions & 2 deletions Hanekawa.Bot/Mapper/DiscordMapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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<Message> response) =>
Expand Down
6 changes: 2 additions & 4 deletions Hanekawa/Entities/Discord/Guild.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Collections.Generic;

namespace Hanekawa.Entities.Discord;
namespace Hanekawa.Entities.Discord;

public class Guild : SimpleGuild
{
Expand All @@ -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<Emote> Emotes = new();
public Emote[] Emotes = [];
}

0 comments on commit 0477ff7

Please sign in to comment.