diff --git a/src/api/handlers/channel.ts b/src/api/handlers/channel.ts index b314fbdcf..aaaa998f5 100644 --- a/src/api/handlers/channel.ts +++ b/src/api/handlers/channel.ts @@ -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 diff --git a/src/api/structures/channel.ts b/src/api/structures/channel.ts index f0706c3ab..71bb8ec27 100644 --- a/src/api/structures/channel.ts +++ b/src/api/structures/channel.ts @@ -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; diff --git a/src/types/channel.ts b/src/types/channel.ts index 5113da665..59b361222 100644 --- a/src/types/channel.ts +++ b/src/types/channel.ts @@ -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 */