From 5af2ef5fbc7ad11281f38384c360ae79efe63b39 Mon Sep 17 00:00:00 2001 From: Rodry <38259440+ImRodry@users.noreply.github.com> Date: Fri, 25 Jun 2021 00:34:10 +0100 Subject: [PATCH] docs(Thread): add links to discord api docs (#5919) --- src/structures/ThreadChannel.js | 4 ++-- src/structures/ThreadMember.js | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/structures/ThreadChannel.js b/src/structures/ThreadChannel.js index cacca9140..64d0da914 100644 --- a/src/structures/ThreadChannel.js +++ b/src/structures/ThreadChannel.js @@ -14,7 +14,7 @@ const Permissions = require('../util/Permissions'); class ThreadChannel extends Channel { /** * @param {Guild} guild The guild the thread channel is part of - * @param {Object} data The data for the thread channel + * @param {APIChannel} data The data for the thread channel */ constructor(guild, data) { super(guild.client, data, false); @@ -179,7 +179,7 @@ class ThreadChannel extends Channel { /** * Edits the thread. - * @param {Object} data The new data for the thread + * @param {APIChannel} data The new data for the thread * @param {string} [data.name] The new name for the trhead * @param {boolean} [data.archived] Whether the thread is archived * @param {number} [data.autoArchiveDuration] How long in minutes before the thread is automatically archived, diff --git a/src/structures/ThreadMember.js b/src/structures/ThreadMember.js index 195b199c9..e25795947 100644 --- a/src/structures/ThreadMember.js +++ b/src/structures/ThreadMember.js @@ -10,7 +10,7 @@ const ThreadMemberFlags = require('../util/ThreadMemberFlags'); class ThreadMember extends Base { /** * @param {ThreadChannel} thread The thread that this member is associated with - * @param {Object} data The data for the thread member + * @param {APIThreadMember} data The data for the thread member */ constructor(thread, data) { super(thread.client); @@ -93,3 +93,8 @@ class ThreadMember extends Base { } module.exports = ThreadMember; + +/** + * @external APIThreadMember + * @see {@link https://discord.com/developers/docs/resources/channel#thread-member-object} + */