LinkedRoles
This class is the main class that is used for the linked roles feature of Carbon. It handles all the additional routes and oauth.
Example
Extends
Constructors
Constructor
new LinkedRoles(
options
):LinkedRoles
Parameters
Parameter | Type |
---|---|
options | LinkedRolesOptions |
Returns
LinkedRoles
Overrides
Properties
Property | Modifier | Type | Default value | Description | Overrides |
---|---|---|---|---|---|
client? | public | Client | undefined | - | - |
id | readonly | "linked-roles" | "linked-roles" | An ID that identifies the plugin uniquely between all other used plugins in the Client | Plugin .id |
options | public | LinkedRolesOptions | undefined | - | - |
Methods
handleDeployRequest()
Handle a request to deploy the linked roles to Discord
Returns
A response
handleUserVerificationCallbackRequest()
handleUserVerificationCallbackRequest(
req
):Promise
<Response
>
Handle the verify user callback request
Parameters
Parameter | Type | Description |
---|---|---|
req | Request | The request |
Returns
A response
handleUserVerificationRequest()
Handle the verify user request
Returns
A response
registerClient()
registerClient(
client
):void
Registers the client with this plugin
Parameters
Parameter | Type | Description |
---|---|---|
client | Client | The client to register |
Returns
void
Overrides
registerRoutes()
registerRoutes(
client
):void
Registers the routes of this plugin with the client
Parameters
Parameter | Type | Description |
---|---|---|
client | Client | The client to register the routes with |
Returns
void