mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
docs(TextChanne): specify unit of rateLimitPerUser (#3272)
* Update TextChannel.js Update `setRateLimitPerUser` description to specify the `number` is in seconds, per the Discord docs * Update TextChannel.js Add unit to the rateLimitPerUser property * Update GuildChannel.js
This commit is contained in:
@@ -50,7 +50,7 @@ class TextChannel extends GuildChannel {
|
||||
this.lastMessageID = data.last_message_id;
|
||||
|
||||
/**
|
||||
* The ratelimit per user for this channel
|
||||
* The ratelimit per user for this channel in seconds
|
||||
* @type {number}
|
||||
*/
|
||||
this.rateLimitPerUser = data.rate_limit_per_user || 0;
|
||||
@@ -66,7 +66,7 @@ class TextChannel extends GuildChannel {
|
||||
|
||||
/**
|
||||
* Sets the rate limit per user for this channel.
|
||||
* @param {number} rateLimitPerUser The new ratelimit
|
||||
* @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