Skip to content

Commit

Permalink
docs(Widget): Add the typedef WidgetChannel (#6182)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thumuss authored Jul 31, 2021
1 parent bf221f2 commit 8b52d06
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/structures/Widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8b52d06

Please sign in to comment.