feat(VoiceChannel): Support video_quality_mode (v13) (#7785)

This commit is contained in:
Jiralite
2022-04-14 11:43:25 +01:00
committed by GitHub
parent 68498a87be
commit 6daee1b235
6 changed files with 59 additions and 1 deletions

5
typings/enums.d.ts vendored
View File

@@ -205,6 +205,11 @@ export const enum VerificationLevels {
VERY_HIGH = 4,
}
export const enum VideoQualityModes {
AUTO = 1,
FULL = 2,
}
export const enum WebhookTypes {
Incoming = 1,
'Channel Follower' = 2,

8
typings/index.d.ts vendored
View File

@@ -89,6 +89,7 @@ import {
GuildScheduledEventEntityTypes,
GuildScheduledEventStatuses,
GuildScheduledEventPrivacyLevels,
VideoQualityModes,
} from './enums';
import {
RawActivityData,
@@ -2635,12 +2636,14 @@ export class Formatters extends null {
}
export class VoiceChannel extends BaseGuildVoiceChannel {
public videoQualityMode: VideoQualityMode | null;
/** @deprecated Use manageable instead */
public readonly editable: boolean;
public readonly speakable: boolean;
public type: 'GUILD_VOICE';
public setBitrate(bitrate: number, reason?: string): Promise<VoiceChannel>;
public setUserLimit(userLimit: number, reason?: string): Promise<VoiceChannel>;
public setVideoQualityMode(videoQualityMode: VideoQualityMode | number, reason?: string): Promise<VoiceChannel>;
}
export class VoiceRegion {
@@ -2992,6 +2995,7 @@ export const Constants: {
GuildScheduledEventEntityTypes: EnumHolder<typeof GuildScheduledEventEntityTypes>;
GuildScheduledEventStatuses: EnumHolder<typeof GuildScheduledEventStatuses>;
GuildScheduledEventPrivacyLevels: EnumHolder<typeof GuildScheduledEventPrivacyLevels>;
VideoQualityModes: EnumHolder<typeof VideoQualityModes>;
};
export const version: string;
@@ -4048,6 +4052,7 @@ export interface ChannelData {
permissionOverwrites?: readonly OverwriteResolvable[] | Collection<Snowflake, OverwriteResolvable>;
defaultAutoArchiveDuration?: ThreadAutoArchiveDuration;
rtcRegion?: string | null;
videoQualityMode?: VideoQualityMode | null;
}
export interface ChannelLogsQueryOptions {
@@ -5553,6 +5558,7 @@ export interface PartialChannelData {
bitrate?: number;
userLimit?: number;
rtcRegion?: string | null;
videoQualityMode?: VideoQualityMode;
permissionOverwrites?: PartialOverwriteData[];
rateLimitPerUser?: number;
}
@@ -5890,6 +5896,8 @@ export interface Vanity {
export type VerificationLevel = keyof typeof VerificationLevels;
export type VideoQualityMode = keyof typeof VideoQualityModes;
export type VoiceBasedChannelTypes = VoiceBasedChannel['type'];
export type VoiceChannelResolvable = Snowflake | VoiceChannel;