docs(Widget): Add the typedef WidgetChannel (#6182)

This commit is contained in:
ThumusLive
2021-07-31 10:51:20 +02:00
committed by GitHub
parent bf221f2bef
commit 8b52d06ca9

View File

@@ -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