Skip to content

Commit

Permalink
docs(TextChannel): warning about setRateLimitPerUser NewsChannel (#5403)
Browse files Browse the repository at this point in the history
  • Loading branch information
ImRodry committed May 29, 2021
1 parent a73a5cf commit 47bbdf4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/structures/TextChannel.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class TextChannel extends GuildChannel {

/**
* The ratelimit per user for this channel in seconds
* <warn>It is not currently possible to set a rate limit per user on a `NewsChannel`.</warn>
* @type {number}
*/
this.rateLimitPerUser = data.rate_limit_per_user || 0;
Expand All @@ -68,6 +69,7 @@ class TextChannel extends GuildChannel {

/**
* Sets the rate limit per user for this channel.
* <warn>It is not currently possible to set the rate limit per user on a `NewsChannel`.</warn>
* @param {number} rateLimitPerUser The new ratelimit in seconds
* @param {string} [reason] Reason for changing the channel's ratelimits
* @returns {Promise<TextChannel>}
Expand Down

0 comments on commit 47bbdf4

Please sign in to comment.