mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-21 05:53:30 +01:00
docs: no @type description and reveal info block (#9097)
This commit is contained in:
@@ -43,8 +43,8 @@ class AutoModerationActionExecution {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* The id of the message that triggered this action.
|
* The id of the message that triggered this action.
|
||||||
* @type {?Snowflake}
|
|
||||||
* <info>This will not be present if the message was blocked or the content was not part of any message.</info>
|
* <info>This will not be present if the message was blocked or the content was not part of any message.</info>
|
||||||
|
* @type {?Snowflake}
|
||||||
*/
|
*/
|
||||||
this.messageId = data.message_id ?? null;
|
this.messageId = data.message_id ?? null;
|
||||||
|
|
||||||
|
|||||||
@@ -11,13 +11,13 @@ class ModalSubmitFields {
|
|||||||
constructor(components) {
|
constructor(components) {
|
||||||
/**
|
/**
|
||||||
* The components within the modal
|
* The components within the modal
|
||||||
* @type {ActionRowModalData[]} The components in the modal
|
* @type {ActionRowModalData[]}
|
||||||
*/
|
*/
|
||||||
this.components = components;
|
this.components = components;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The extracted fields from the modal
|
* The extracted fields from the modal
|
||||||
* @type {Collection<string, ModalData>} The fields in the modal
|
* @type {Collection<string, ModalData>}
|
||||||
*/
|
*/
|
||||||
this.fields = components.reduce((accumulator, next) => {
|
this.fields = components.reduce((accumulator, next) => {
|
||||||
next.components.forEach(c => accumulator.set(c.customId, c));
|
next.components.forEach(c => accumulator.set(c.customId, c));
|
||||||
|
|||||||
Reference in New Issue
Block a user