@@ -1,8 +1,10 @@ | |||||
using System.Collections.Immutable; | using System.Collections.Immutable; | ||||
using System.Diagnostics; | |||||
using Model = Discord.API.Emoji; | using Model = Discord.API.Emoji; | ||||
namespace Discord | namespace Discord | ||||
{ | { | ||||
[DebuggerDisplay(@"{DebuggerDisplay,nq}")] | |||||
public struct Emoji | public struct Emoji | ||||
{ | { | ||||
public ulong Id { get; } | public ulong Id { get; } | ||||
@@ -19,5 +21,8 @@ namespace Discord | |||||
RequireColons = model.RequireColons; | RequireColons = model.RequireColons; | ||||
RoleIds = ImmutableArray.Create(model.Roles); | RoleIds = ImmutableArray.Create(model.Roles); | ||||
} | } | ||||
public override string ToString() => Name; | |||||
private string DebuggerDisplay => $"{Name} ({Id})"; | |||||
} | } | ||||
} | } |
@@ -1,7 +1,9 @@ | |||||
using Model = Discord.API.GuildEmbed; | |||||
using System.Diagnostics; | |||||
using Model = Discord.API.GuildEmbed; | |||||
namespace Discord | namespace Discord | ||||
{ | { | ||||
[DebuggerDisplay(@"{DebuggerDisplay,nq}")] | |||||
public struct GuildEmbed | public struct GuildEmbed | ||||
{ | { | ||||
public bool IsEnabled { get; private set; } | public bool IsEnabled { get; private set; } | ||||
@@ -14,5 +16,8 @@ namespace Discord | |||||
} | } | ||||
internal GuildEmbed(Model model) | internal GuildEmbed(Model model) | ||||
: this(model.Enabled, model.ChannelId) { } | : this(model.Enabled, model.ChannelId) { } | ||||
public override string ToString() => ChannelId?.ToString(); | |||||
private string DebuggerDisplay => $"{ChannelId} ({(IsEnabled ? "Enabled" : "Disabled")})"; | |||||
} | } | ||||
} | } |