Discore
Show / Hide Table of Contents

Class CreateGuildRoleOptions

A set of parameters for creating roles when creating a new guild.

Inheritance
object
CreateRoleOptions
CreateGuildRoleOptions
Inherited Members
CreateRoleOptions.Name
CreateRoleOptions.Permissions
CreateRoleOptions.Color
CreateRoleOptions.IsHoisted
CreateRoleOptions.IsMentionable
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 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.

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