mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-19 04:38:17 +00:00
refactor: rename slowmode to rateLimitPerUser (#645)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user