Skip to content

Commit

Permalink
docs(Thread): add links to discord api docs (#5919)
Browse files Browse the repository at this point in the history
  • Loading branch information
ImRodry authored Jun 24, 2021
1 parent 75837a8 commit 5af2ef5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/structures/ThreadChannel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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,
Expand Down
7 changes: 6 additions & 1 deletion src/structures/ThreadMember.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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}
*/

0 comments on commit 5af2ef5

Please sign in to comment.