mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 09:33:32 +01:00
feat(VoiceChannel): Support video_quality_mode (v13) (#7785)
This commit is contained in:
5
typings/enums.d.ts
vendored
5
typings/enums.d.ts
vendored
@@ -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
8
typings/index.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user