mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 16:43:31 +01:00
docs(TextChannel): warning about setRateLimitPerUser NewsChannel (#5403)
This commit is contained in:
@@ -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>}
|
||||
|
||||
Reference in New Issue
Block a user