mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
docs(Thread): add links to discord api docs (#5919)
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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}
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user