Interface IDiscordGuildRole
Represents a discord Role Structure API model. Docs: https://discord.com/developers/docs/topics/permissions#role-object-role-structure
Namespace: Color_Chan.Discord.Core.Common.Models.Guild
Assembly: Color-Chan.Discord.Core.dll
Syntax
public interface IDiscordGuildRole
Properties
| Improve this Doc View SourceColor
Integer representation of hexadecimal color code.
Declaration
Color Color { get; set; }
Property Value
Type | Description |
---|---|
Color |
Id
Role id.
Declaration
ulong Id { get; set; }
Property Value
Type | Description |
---|---|
System.UInt64 |
IsHoisted
If this role is pinned in the user listing.
Declaration
bool IsHoisted { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Managed
Whether this role is managed by an integration
Declaration
bool Managed { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Mentionable
Whether this role is mentionable
Declaration
bool Mentionable { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Name
Role name.
Declaration
string Name { get; set; }
Property Value
Type | Description |
---|---|
String |
Permissions
Permission bit set.
Declaration
DiscordPermission Permissions { get; set; }
Property Value
Type | Description |
---|---|
DiscordPermission |
Position
Position of this role.
Declaration
int Position { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Methods
| Improve this Doc View SourceToDataModel()
Converts the model back to a discord data model so that it can be send to discord.
Declaration
DiscordGuildRoleData ToDataModel()
Returns
Type | Description |
---|---|
DiscordGuildRoleData | The converted DiscordGuildRoleData. |