|
|
@@ -30,12 +30,20 @@ namespace Discord |
|
|
|
/// A read-only list containing snowflake identifiers for roles that are allowed to use this emoji. |
|
|
|
/// </returns> |
|
|
|
public IReadOnlyList<ulong> RoleIds { get; } |
|
|
|
/// <summary> |
|
|
|
/// Gets the user Id that created this emoji. |
|
|
|
/// </summary> |
|
|
|
/// <returns> |
|
|
|
/// A user Id of the user who created this emoji, which may be null. A null value only indicates that the creator was not supplied as part of the API response. |
|
|
|
/// </returns> |
|
|
|
public ulong? CreatorId { get; } |
|
|
|
|
|
|
|
internal GuildEmote(ulong id, string name, bool animated, bool isManaged, bool requireColons, IReadOnlyList<ulong> roleIds) : base(id, name, animated) |
|
|
|
internal GuildEmote(ulong id, string name, bool animated, bool isManaged, bool requireColons, IReadOnlyList<ulong> roleIds, ulong? userId) : base(id, name, animated) |
|
|
|
{ |
|
|
|
IsManaged = isManaged; |
|
|
|
RequireColons = requireColons; |
|
|
|
RoleIds = roleIds; |
|
|
|
CreatorId = userId; |
|
|
|
} |
|
|
|
|
|
|
|
private string DebuggerDisplay => $"{Name} ({Id})"; |
|
|
|