mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 12:03:31 +01:00
docs(WebhookClient): Document working options (#8375)
This commit is contained in:
@@ -29,9 +29,16 @@ class WebhookClient extends BaseClient {
|
|||||||
* @typedef {WebhookClientDataIdWithToken|WebhookClientDataURL} WebhookClientData
|
* @typedef {WebhookClientDataIdWithToken|WebhookClientDataURL} WebhookClientData
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Options for a webhook client.
|
||||||
|
* @typedef {Object} WebhookClientOptions
|
||||||
|
* @property {MessageMentionOptions} [allowedMentions] Default value for {@link WebhookMessageOptions#allowedMentions}
|
||||||
|
* @property {RESTOptions} [rest] Options for the REST manager
|
||||||
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {WebhookClientData} data The data of the webhook
|
* @param {WebhookClientData} data The data of the webhook
|
||||||
* @param {ClientOptions} [options] Options for the client
|
* @param {WebhookClientOptions} [options] Options for the webhook client
|
||||||
*/
|
*/
|
||||||
constructor(data, options) {
|
constructor(data, options) {
|
||||||
super(options);
|
super(options);
|
||||||
@@ -51,6 +58,12 @@ class WebhookClient extends BaseClient {
|
|||||||
Object.defineProperty(this, 'token', { value: token, writable: true, configurable: true });
|
Object.defineProperty(this, 'token', { value: token, writable: true, configurable: true });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The options the webhook client was instantiated with.
|
||||||
|
* @type {WebhookClientOptions}
|
||||||
|
* @name WebhookClient#options
|
||||||
|
*/
|
||||||
|
|
||||||
// These are here only for documentation purposes - they are implemented by Webhook
|
// These are here only for documentation purposes - they are implemented by Webhook
|
||||||
/* eslint-disable no-empty-function, valid-jsdoc */
|
/* eslint-disable no-empty-function, valid-jsdoc */
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user