refactor: rename slowmode to rateLimitPerUser (#645)

This commit is contained in:
ayntee
2021-03-08 19:10:19 +04:00
committed by GitHub
parent 419f57ec74
commit 03d6614758
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -514,7 +514,7 @@ export async function editChannel(
const payload = {
...options,
// deno-lint-ignore camelcase
rate_limit_per_user: options.slowmode,
rate_limit_per_user: options.rateLimitPerUser,
// deno-lint-ignore camelcase
parent_id: options.parentID,
// deno-lint-ignore camelcase
+1 -1
View File
@@ -135,7 +135,7 @@ export interface Channel {
lastMessageID?: string;
/** The amount of users allowed in this voice channel. */
userLimit?: number;
/** The rate limit(slowmode) in this text channel that users can send messages. */
/** The rate limit (slowmode) in this text channel that users can send messages. */
rateLimitPerUser?: number;
/** The category id for this channel */
parentID?: string;
+1 -1
View File
@@ -11,7 +11,7 @@ export interface ChannelEditOptions {
/** whether the channel is nsfw Text */
nsfw?: boolean;
/** amount of seconds a user has to wait before sending another message (0-21600); bots, as well as users with the permission manage_messages or manage_channel, are unaffected Text */
slowmode?: number;
rateLimitPerUser?: number;
/** the bitrate (in bits) of the voice channel; 8000 to 96000 (128000 for VIP servers) Voice */
bitrate?: number;
/** the user limit of the voice channel; 0 refers to no limit, 1 to 99 refers to a user limit Voice */