RolePrompts
RolePrompts ⇐ Base
Section titled “RolePrompts ⇐ Base”Represents a RolePrompts object that extends the Base class.
Kind: global class
Extends: Base
Properties
| Name | Type | Description |
|---|---|---|
| partial | boolean | Indicates if the RolePrompts object is partial or not. |
| guildId | string | The ID of the guild associated with the RolePrompts. |
| description | string | null | The description of the RolePrompts. |
boolean | null |
- RolePrompts ⇐
Base- new RolePrompts([data], guildId, client)
- instance
- .guild ⇒
- static
- .transformRolesData(roles) ⇒
Object
- .transformRolesData(roles) ⇒
new RolePrompts([data], guildId, client)
Section titled “new RolePrompts([data], guildId, client)”Constructs a new instance of the class.
| Param | Type | Description |
|---|---|---|
| [data] | Object | The data object containing the properties of the RolePrompts. |
| guildId | string | The ID of the guild associated with the RolePrompts. |
| client | Client | The client object associated with the RolePrompts. |
rolePrompts.guild ⇒
Section titled “rolePrompts.guild ⇒”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.
| Param | Type | Description |
|---|---|---|
| roles | Object | The roles data object. |