fix: unit of bitrate fields in bits per second (#5194)

This commit is contained in:
Fleny
2026-07-26 05:49:22 +05:30
committed by GitHub
parent 9afac8d291
commit 834f4fa718
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -438,7 +438,7 @@ export interface Channel {
topic?: string;
/** The id of the last message sent in this channel (may not point to an existing or valid message) */
lastMessageId?: bigint;
/** The bitrate (in bits) of the voice or stage channel */
/** The bitrate (in bits per second) of the voice or stage channel */
bitrate?: number;
/** The user limit of the voice or stage channel */
userLimit?: number;
+1 -1
View File
@@ -39,7 +39,7 @@ export interface DiscordChannel extends Partial<DiscordThreadCreateExtra> {
nsfw?: boolean;
/** The id of the last message sent in this channel (may not point to an existing or valid message or thread) */
last_message_id?: string | null;
/** The bitrate (in bits) of the voice or stage channel */
/** The bitrate (in bits per second) of the voice or stage channel */
bitrate?: number;
/** The user limit of the voice or stage channel */
user_limit?: number;
+1 -1
View File
@@ -113,7 +113,7 @@ export interface ModifyChannel {
*/
rateLimitPerUser?: number | null;
/**
* The bitrate (in bits) of the voice or stage channel
* The bitrate (in bits per second) of the voice or stage channel
*
* @remarks
* Minimum of 8000 bits
+1 -1
View File
@@ -70,7 +70,7 @@ export interface CreateGuildChannel {
type?: ChannelTypes;
/** Channel topic (0-1024 characters) */
topic?: string;
/** The bitrate (in bits) of the voice channel (voice only) */
/** The bitrate (in bits per second) of the voice channel (voice only) */
bitrate?: number;
/** The user limit of the voice channel (voice only) */
userLimit?: number;