Extensions
The extensions
builder allows you to register extensions, and configure bundled and third-party extensions.
Builders
Builder | Receiver | Description |
---|---|---|
| Register an extension to be loaded via a callable object (usually a constructor) that returns an implementation of the | |
|
| Configure the currently loaded help extension, and enable or disable the bundled one. |
|
| Configure the Kord Extensions Sentry extension and integration. |
Help Extension
The help
builder allows you to configure the currently loaded chat command help extension, and enable or disable the bundled one.
Builders
Properties
Name | Type | Default | Description |
---|---|---|---|
|
|
| Whether to delete the message containing the help command invocation once the paginator timeout has been reached. |
|
|
| Whether to delete the paginator output by the help command after the paginator timeout has been reached. |
|
|
| Whether to enable the bundled help extension. |
|
|
| How long since the user's last button press to wait before the help paginator times out, in seconds. |
|
|
| Whether to mention (ping) users in reply to their help command invocation. |
Sentry Extension
The sentry
builder is used to configure the Sentry integration, as well as enabling or disabling the bundled extension used for collecting feedback from users when errors occur.
Builders
Builder | Receiver | Description |
---|---|---|
| Register a callable object (usually a constructor) that returns an alternative implementation of the | |
|
| Configure the default data types that Kord Extensions is allowed to send to Sentry in breadcrumbs and exception reports. This is done by setting the relevant |
|
| Register a Sentry data type transformer, allowing you to change the types of data that may be submitted to Sentry based on the given Data type transformers are run before Kord Extensions adds the data defined in the |
|
| Register a Sentry submission predicate, allowing you to prevent the data in the given Sentry submission predicates are run just before Kord Extensions attempts to submit the data defined in the |
|
| Replace the bundled setup callback with your own function, which must configure the |
Properties
The following properties are used to configure the Kord Extensions Sentry integration, rather than the Sentry API itself.
Name | Type | Default | Description |
---|---|---|---|
|
|
| Whether to enable the Kord Extensions Sentry integration. |
|
|
| Whether to enable the bundled Sentry feedback extension, which adds |
|
|
| Whether to ping users in response to their |
|
|
| How many submitted events to send to Sentry, as a percentage. |
The following properties are used to configure the Sentry API directly. Only the most common options are exposed here, but you can use the setup
builder if you need to configure other options. For more information, see the Sentry documentation.
Name | Type | Default | Description |
---|---|---|---|
|
|
| Whether to enable Sentry's debug mode. |
|
|
| Your Sentry DSN, required to enable the integration. |
|
|
| Sentry's Distribution option. |
|
|
| Sentry's Environment option. |
|
|
| Sentry's Release option. |
|
|
| Sentry's Server Name option. |