Discore
Show / Hide Table of Contents

Class CreateRoleOptions

Inheritance
object
CreateRoleOptions
CreateGuildRoleOptions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX