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 = {
|
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
|
||||||
|
|||||||
@@ -135,7 +135,7 @@ export interface Channel {
|
|||||||
lastMessageID?: string;
|
lastMessageID?: string;
|
||||||
/** The amount of users allowed in this voice channel. */
|
/** The amount of users allowed in this voice channel. */
|
||||||
userLimit?: number;
|
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;
|
rateLimitPerUser?: number;
|
||||||
/** The category id for this channel */
|
/** The category id for this channel */
|
||||||
parentID?: string;
|
parentID?: string;
|
||||||
|
|||||||
@@ -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 */
|
||||||
|
|||||||
Reference in New Issue
Block a user