40 lines
934 B
C#
40 lines
934 B
C#
using Newtonsoft.Json;
|
|
|
|
namespace Maki.Structures.Messages
|
|
{
|
|
/// <summary>
|
|
/// Discord API Emoji structure
|
|
/// </summary>
|
|
internal struct Emoji
|
|
{
|
|
/// <summary>
|
|
/// id of emoji (if custom emoji)
|
|
/// </summary>
|
|
[JsonProperty("id")]
|
|
public ulong? Id;
|
|
|
|
/// <summary>
|
|
/// name of emoji
|
|
/// </summary>
|
|
[JsonProperty("name")]
|
|
public string Name;
|
|
|
|
/// <summary>
|
|
/// roles this emoji is active for
|
|
/// </summary>
|
|
[JsonProperty("roles")]
|
|
public ulong[] Roles;
|
|
|
|
/// <summary>
|
|
/// whether this emoji must be wrapped in colons
|
|
/// </summary>
|
|
[JsonProperty("require_colons")]
|
|
public bool RequiresColons;
|
|
|
|
/// <summary>
|
|
/// whether this emoji is managed
|
|
/// </summary>
|
|
[JsonProperty("managed")]
|
|
public bool IsManaged;
|
|
}
|
|
}
|