Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: cleanup MessageCreateOptions and MessageReplyOptions #9283

Merged
merged 9 commits into from Apr 14, 2023
1 change: 0 additions & 1 deletion packages/discord.js/src/structures/Message.js
Expand Up @@ -822,7 +822,6 @@ class Message extends Base {
* @typedef {BaseMessageCreateOptions} MessageReplyOptions
* @property {boolean} [failIfNotExists=this.client.options.failIfNotExists] Whether to error if the referenced
* message does not exist (creates a standard message in this case when false)
* @property {StickerResolvable[]} [stickers=[]] Stickers to send in the message
*/

/**
Expand Down
Expand Up @@ -75,15 +75,20 @@ class TextBasedChannel {

/**
* The options for sending a message.
* @typedef {BaseMessageOptions} MessageCreateOptions
* @typedef {BaseMessageOptions} BaseMessageCreateOptions
* @property {boolean} [tts=false] Whether the message should be spoken aloud
* @property {string} [nonce=''] The nonce for the message
* @property {ReplyOptions} [reply] The options for replying to a message
* @property {StickerResolvable[]} [stickers=[]] The stickers to send in the message
* @property {MessageFlags} [flags] Which flags to set for the message.
* <info>Only `MessageFlags.SuppressEmbeds` and `MessageFlags.SuppressNotifications` can be set.</info>
*/

/**
* The options for sending a message.
* @typedef {BaseMessageCreateOptions} MessageCreateOptions
* @property {ReplyOptions} [reply] The options for replying to a message
*/

/**
* Options provided to control parsing of mentions by Discord
* @typedef {Object} MessageMentionOptions
Expand Down