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:
anandre
2019-05-15 15:33:27 -05:00
committed by SpaceEEC
parent 16fcfa3db3
commit 55447fd4da
2 changed files with 3 additions and 3 deletions

View File

@@ -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>}
*/