mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
docs: Better links for .toJSON() of button and select menu (#6745)
Co-authored-by: Rodry <38259440+ImRodry@users.noreply.github.com>
This commit is contained in:
@@ -130,7 +130,7 @@ class MessageButton extends BaseMessageComponent {
|
||||
|
||||
/**
|
||||
* Transforms the button to a plain object.
|
||||
* @returns {APIMessageComponent} The raw data of this button
|
||||
* @returns {APIMessageButton} The raw data of this button
|
||||
*/
|
||||
toJSON() {
|
||||
return {
|
||||
|
||||
@@ -168,8 +168,8 @@ class MessageSelectMenu extends BaseMessageComponent {
|
||||
}
|
||||
|
||||
/**
|
||||
* Transforms this select menu to a plain object
|
||||
* @returns {Object} The raw data of this select menu
|
||||
* Transforms the select menu into a plain object
|
||||
* @returns {APIMessageSelectMenu} The raw data of this select menu
|
||||
*/
|
||||
toJSON() {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user