mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
docs(Widget): Add the typedef WidgetChannel (#6182)
This commit is contained in:
@@ -17,6 +17,14 @@ class Widget extends Base {
|
||||
this._patch(data);
|
||||
}
|
||||
|
||||
/**
|
||||
* Represents a channel in a Widget
|
||||
* @typedef {Object} WidgetChannel
|
||||
* @property {Snowflake} id Id of the channel
|
||||
* @property {string} name Name of the channel
|
||||
* @property {number} position Position of the channel
|
||||
*/
|
||||
|
||||
/**
|
||||
* Builds the widget with the provided data.
|
||||
* @param {*} data The raw data of the widget
|
||||
|
||||
Reference in New Issue
Block a user