mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 11:03: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:
@@ -291,7 +291,7 @@ class GuildChannel extends Channel {
|
|||||||
* Lock the permissions of the channel to what the parent's permissions are
|
* Lock the permissions of the channel to what the parent's permissions are
|
||||||
* @property {OverwriteResolvable[]|Collection<Snowflake, OverwriteResolvable>} [permissionOverwrites]
|
* @property {OverwriteResolvable[]|Collection<Snowflake, OverwriteResolvable>} [permissionOverwrites]
|
||||||
* Permission overwrites for the channel
|
* Permission overwrites for the channel
|
||||||
* @property {number} [rateLimitPerUser] The ratelimit per user for the channel
|
* @property {number} [rateLimitPerUser] The ratelimit per user for the channel in seconds
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ class TextChannel extends GuildChannel {
|
|||||||
this.lastMessageID = data.last_message_id;
|
this.lastMessageID = data.last_message_id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The ratelimit per user for this channel
|
* The ratelimit per user for this channel in seconds
|
||||||
* @type {number}
|
* @type {number}
|
||||||
*/
|
*/
|
||||||
this.rateLimitPerUser = data.rate_limit_per_user || 0;
|
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.
|
* 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
|
* @param {string} [reason] Reason for changing the channel's ratelimits
|
||||||
* @returns {Promise<TextChannel>}
|
* @returns {Promise<TextChannel>}
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user