Class DiscordGuildRoleData
Represents a discord Role Structure API model. Docs: https://discord.com/developers/docs/topics/permissions#role-object-role-structure
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Color_Chan.Discord.Core.Common.API.DataModels.Guild
Assembly: Color-Chan.Discord.Core.dll
Syntax
public class DiscordGuildRoleData : IEquatable<DiscordGuildRoleData>
Properties
| Improve this Doc View SourceColor
Integer representation of hexadecimal color code.
Declaration
[JsonPropertyName("color")]
public Color Color { get; set; }
Property Value
Type | Description |
---|---|
Color |
Id
Role id.
Declaration
[JsonPropertyName("id")]
public ulong Id { get; set; }
Property Value
Type | Description |
---|---|
System.UInt64 |
IsHoisted
If this role is pinned in the user listing.
Declaration
[JsonPropertyName("hoist")]
public bool IsHoisted { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Managed
Whether this role is managed by an integration
Declaration
[JsonPropertyName("managed")]
public bool Managed { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Mentionable
Whether this role is mentionable
Declaration
[JsonPropertyName("mentionable")]
public bool Mentionable { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Name
Role name.
Declaration
[JsonPropertyName("name")]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
String |
Permissions
Permission bit set.
Declaration
[JsonPropertyName("permissions")]
public DiscordPermission Permissions { get; set; }
Property Value
Type | Description |
---|---|
DiscordPermission |
Position
Position of this role.
Declaration
[JsonPropertyName("position")]
public int Position { get; set; }
Property Value
Type | Description |
---|---|
Int32 |