From 8b52d06ca9a2a0ea0c7de33b2e5a95223a8b4feb Mon Sep 17 00:00:00 2001 From: ThumusLive <42680097+ThumusLive@users.noreply.github.com> Date: Sat, 31 Jul 2021 10:51:20 +0200 Subject: [PATCH] docs(Widget): Add the typedef WidgetChannel (#6182) --- src/structures/Widget.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/structures/Widget.js b/src/structures/Widget.js index 3b232505e..05e3bd442 100644 --- a/src/structures/Widget.js +++ b/src/structures/Widget.js @@ -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