Skip to content

RolePrompts

Represents a RolePrompts object that extends the Base class.

Kind: global class
Extends: Base
Properties

NameTypeDescription
partialbooleanIndicates if the RolePrompts object is partial or not.
guildIdstringThe ID of the guild associated with the RolePrompts.
descriptionstring | nullThe description of the RolePrompts.
boolean | null

Constructs a new instance of the class.

ParamTypeDescription
[data]ObjectThe data object containing the properties of the RolePrompts.
guildIdstringThe ID of the guild associated with the RolePrompts.
clientClientThe client object associated with the RolePrompts.

Get the guild object associated with this guildId.

Kind: instance property of RolePrompts
Returns: The guild object.

RolePrompts.transformRolesData(roles) ⇒ Object

Section titled “RolePrompts.transformRolesData(roles) ⇒ Object”

Transforms the roles data object by extracting specific properties and assigning default values if necessary.

Kind: static method of RolePrompts
Returns: Object - - The transformed roles data object with extracted properties and default values.

ParamTypeDescription
rolesObjectThe roles data object.