chore: eslint
This commit is contained in:
@@ -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
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -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
2
typings/index.d.ts
vendored
@@ -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>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user