chore: eslint

This commit is contained in:
Elysia
2025-03-10 12:33:39 +07:00
parent 00f2973e83
commit 0468d76610
3 changed files with 5 additions and 5 deletions

View File

@@ -142,10 +142,10 @@ class VoiceConnection extends EventEmitter {
/** /**
* Video codec * Video codec
* * `VP8` * * `VP8`
* * `VP9` (Not supported for encoding) * * `VP9` (Not supported for encoding & decoding)
* * `H264` * * `H264`
* * `H265` (Not supported for encoding, worked for decoding) * * `H265` (Not supported for encoding & decoding)
* * `AV1` (Not supported for encoding) * * `AV1` (Not supported for encoding & decoding)
* @typedef {string} VideoCodec * @typedef {string} VideoCodec
*/ */

View File

@@ -246,7 +246,7 @@ class MediaPlayer extends EventEmitter {
return this.playAnnexBVideo(ffmpeg, options, streams, 'H264'); return this.playAnnexBVideo(ffmpeg, options, streams, 'H264');
} }
default: { default: {
throw new Error('Invalid codec (Supported: VP8, H264, H265)'); throw new Error('Invalid codec (Supported: VP8, H264)');
} }
} }
} }

2
typings/index.d.ts vendored
View File

@@ -4822,7 +4822,7 @@ export interface TextBasedChannelFields extends PartialTextBasedChannelFields {
setRateLimitPerUser(rateLimitPerUser: number, reason?: string): Promise<this>; setRateLimitPerUser(rateLimitPerUser: number, reason?: string): Promise<this>;
setNSFW(nsfw?: boolean, reason?: string): Promise<this>; setNSFW(nsfw?: boolean, reason?: string): Promise<this>;
fetchWebhooks(): Promise<Collection<Snowflake, Webhook>>; fetchWebhooks(): Promise<Collection<Snowflake, Webhook>>;
sendTyping(): Promise<{ message_send_cooldown_ms: number; thread_create_cooldown_ms: number } | void>; sendTyping(): Promise<{ message_send_cooldown_ms: number; thread_create_cooldown_ms: number } | undefined>;
sendSlash(target: UserResolvable, commandName: string, ...args: any[]): Promise<Message | Modal>; sendSlash(target: UserResolvable, commandName: string, ...args: any[]): Promise<Message | Modal>;
} }