Class CreateGuildRoleOptions
A set of parameters for creating roles when creating a new guild.
Inherited Members
Namespace: Discore.Http
Assembly: Discore.dll
Syntax
public class CreateGuildRoleOptions : CreateRoleOptions
Constructors
| Name | Description |
|---|---|
| CreateGuildRoleOptions(Snowflake) |
Properties
| Name | Description |
|---|---|
| TemporaryId | Gets or sets a temporary ID for the role. This allows channels also created with the guild to overwrite this role's permissions. This role's ID will be overwritten upon creation of the guild. |
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. |