Discore
Show / Hide Table of Contents

Class ModifyRoleOptions

An optional set of parameters used for modifying a guild role.

Inheritance
object
ModifyRoleOptions
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 ModifyRoleOptions

Properties

Name Description
Color

Gets or sets the display color of the role (or null to leave unchanged).

IsHoisted

Gets or sets whether the role is displayed in the sidebar (or null to leave unchanged).

IsMentionable

Gets or sets whether the role is mentionable (or null to leave unchanged).

Name

Gets or sets the name of the role (or null to leave unchanged).

Permissions

Gets or sets the permissions granted by this role (or null to leave unchanged).

Methods

Name Description
SetColor(DiscordColor)

Sets the display color of the role.

SetHoisted(bool)

Sets whether the role should be displayed in the sidebar.

SetMentionable(bool)

Sets whether the role is mentionable.

SetName(string)

Sets the name of the role.

SetPermissions(DiscordPermission)

Sets the permissions granted by the role.

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