Class CreateRoleOptions
Inherited Members
Namespace: Discore.Http
Assembly: Discore.dll
Syntax
public class CreateRoleOptions
Constructors
| Name | Description |
|---|---|
| CreateRoleOptions() | |
| CreateRoleOptions(string) |
Properties
| Name | Description |
|---|---|
| Color | Gets or sets the color of the role to create (or null to use default). |
| IsHoisted | Gets or sets whether the created role should be displayed in the sidebar (or null to use default). |
| IsMentionable | Gets or sets whether the created role should be mentionable (or null to use default). |
| Name | Gets or sets the name of the role to create. |
| Permissions | Gets or sets the permissions of the role to create (or null to use default). |
Methods
| Name | Description |
|---|---|
| BuildAdditionalProperties(Utf8JsonWriter) | |
| SetColor(DiscordColor) | Sets the color of the role to create. |
| SetHoisted(bool) | Sets whether the created role should be displayed in the sidebar. |
| SetMentionable(bool) | Sets whether the created role should be mentionable. |
| SetName(string) | Sets the name of the role to create. |
| SetPermissions(DiscordPermission) | Sets the permissions of the role to create. |