docs(Thread): add links to discord api docs (#5919)

This commit is contained in:
Rodry
2021-06-25 00:34:10 +01:00
committed by GitHub
parent 75837a8252
commit 5af2ef5fbc
2 changed files with 8 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ const Permissions = require('../util/Permissions');
class ThreadChannel extends Channel { class ThreadChannel extends Channel {
/** /**
* @param {Guild} guild The guild the thread channel is part of * @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) { constructor(guild, data) {
super(guild.client, data, false); super(guild.client, data, false);
@@ -179,7 +179,7 @@ class ThreadChannel extends Channel {
/** /**
* Edits the thread. * 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 {string} [data.name] The new name for the trhead
* @param {boolean} [data.archived] Whether the thread is archived * @param {boolean} [data.archived] Whether the thread is archived
* @param {number} [data.autoArchiveDuration] How long in minutes before the thread is automatically archived, * @param {number} [data.autoArchiveDuration] How long in minutes before the thread is automatically archived,

View File

@@ -10,7 +10,7 @@ const ThreadMemberFlags = require('../util/ThreadMemberFlags');
class ThreadMember extends Base { class ThreadMember extends Base {
/** /**
* @param {ThreadChannel} thread The thread that this member is associated with * @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) { constructor(thread, data) {
super(thread.client); super(thread.client);
@@ -93,3 +93,8 @@ class ThreadMember extends Base {
} }
module.exports = ThreadMember; module.exports = ThreadMember;
/**
* @external APIThreadMember
* @see {@link https://discord.com/developers/docs/resources/channel#thread-member-object}
*/