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 = { const payload = {
...options, ...options,
// deno-lint-ignore camelcase // deno-lint-ignore camelcase
rate_limit_per_user: options.slowmode, rate_limit_per_user: options.rateLimitPerUser,
// deno-lint-ignore camelcase // deno-lint-ignore camelcase
parent_id: options.parentID, parent_id: options.parentID,
// deno-lint-ignore camelcase // deno-lint-ignore camelcase
+1 -1
View File
@@ -11,7 +11,7 @@ export interface ChannelEditOptions {
/** whether the channel is nsfw Text */ /** whether the channel is nsfw Text */
nsfw?: boolean; 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 */ /** 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 */ /** the bitrate (in bits) of the voice channel; 8000 to 96000 (128000 for VIP servers) Voice */
bitrate?: number; bitrate?: number;
/** the user limit of the voice channel; 0 refers to no limit, 1 to 99 refers to a user limit Voice */ /** the user limit of the voice channel; 0 refers to no limit, 1 to 99 refers to a user limit Voice */