From 47bbdf415cd03145b16740ab88c7cca33bd7bcf5 Mon Sep 17 00:00:00 2001
From: Rodry <38259440+ImRodry@users.noreply.github.com>
Date: Sat, 29 May 2021 15:26:30 +0100
Subject: [PATCH] docs(TextChannel): warning about setRateLimitPerUser
NewsChannel (#5403)
---
src/structures/TextChannel.js | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/structures/TextChannel.js b/src/structures/TextChannel.js
index 4d544075c..5c8e984f4 100644
--- a/src/structures/TextChannel.js
+++ b/src/structures/TextChannel.js
@@ -53,6 +53,7 @@ class TextChannel extends GuildChannel {
/**
* The ratelimit per user for this channel in seconds
+ * It is not currently possible to set a rate limit per user on a `NewsChannel`.
* @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.
+ * It is not currently possible to set the rate limit per user on a `NewsChannel`.
* @param {number} rateLimitPerUser The new ratelimit in seconds
* @param {string} [reason] Reason for changing the channel's ratelimits
* @returns {Promise}