CreateRoleOption
Defined in: packages/builders/src/commands.ts:310
Builds a role command option.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new CreateRoleOption():
CreateRoleOption
Defined in: packages/builders/src/commands.ts:312
Creates a role option.
Returns
Section titled “Returns”CreateRoleOption
Overrides
Section titled “Overrides”CreateCommandOption.constructor
Methods
Section titled “Methods”setAutocomplete()
Section titled “setAutocomplete()”setAutocomplete(
enabled?):this
Defined in: packages/builders/src/commands.ts:179
Sets autocomplete; options with choices cannot use it.
Parameters
Section titled “Parameters”enabled?
Section titled “enabled?”boolean = true
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”CreateCommandOption.setAutocomplete
setDescription()
Section titled “setDescription()”setDescription(
description):this
Defined in: packages/builders/src/commands.ts:168
Sets the option description.
Parameters
Section titled “Parameters”description
Section titled “description”string
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”CreateCommandOption.setDescription
setName()
Section titled “setName()”setName(
name):this
Defined in: packages/builders/src/commands.ts:162
Sets the option name.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”setRequired()
Section titled “setRequired()”setRequired(
required?):this
Defined in: packages/builders/src/commands.ts:174
Makes the option required or optional.
Parameters
Section titled “Parameters”required?
Section titled “required?”boolean = true
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”CreateCommandOption.setRequired
toJSON()
Section titled “toJSON()”toJSON():
Record<string,unknown>
Defined in: packages/builders/src/commands.ts:190
Serializes the option payload.
Returns
Section titled “Returns”Record<string, unknown>