docs(TextChannel): warning about setRateLimitPerUser NewsChannel (#5403)

This commit is contained in:
Rodry
2021-05-29 15:26:30 +01:00
committed by GitHub
parent a73a5cf914
commit 47bbdf415c

View File

@@ -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;
@@ -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>}