🎧 Complete framework to simplify the implementation of music commands using discord.js v14
Full Changelog: https://github.com/Androz2091/discord-player/compare/@discord-player/[email protected]...@discord-player/[email protected]
pauseOnEmpty
discord-voip
silenceremove
filterFull Changelog: https://github.com/Androz2091/discord-player/compare/@discord-player/[email protected]@6.6.3
@evan/opus
@discord-player/opus
Streamable Opus encoder and decoder for Discord Player.
$ yarn add @discord-player/opus
Additionally, install one of the following opus libraries:
mediaplex
@discordjs/opus
opusscript
node-opus
If one does not work, feel free to switch to another.
import { OPUS_MOD_REGISTRY } from '@discord-player/opus';
OPUS_MOD_REGISTRY.unshift(['my-opus-package-name', (mod) => ({ Encoder: mod.OpusEncoder })]);
Make sure to use this code before using any of the opus classes.
import { OpusEncoder, OpusDecoder } from '@discord-player/opus';
// encode
const opusStream = getPcmStreamSomehow().pipe(new OpusEncoder({ rate: 48000, channels: 2, frameSize: 960 }));
// decode
const pcmStream = getOpusStreamSomehow().pipe(new OpusDecoder({ rate: 48000, channels: 2, frameSize: 960 }));
@discord-player/opus
Streamable Opus encoder and decoder for Discord Player.
$ yarn add @discord-player/opus
Additionally, install one of the following opus libraries:
mediaplex
@discordjs/opus
opusscript
node-opus
If one does not work, feel free to switch to another.
import { OPUS_MOD_REGISTRY } from '@discord-player/opus';
OPUS_MOD_REGISTRY.unshift(['my-opus-package-name', (mod) => ({ Encoder: mod.OpusEncoder })]);
Make sure to use this code before using any of the opus classes.
import { OpusEncoder, OpusDecoder } from '@discord-player/opus';
// encode
const opusStream = getPcmStreamSomehow().pipe(new OpusEncoder({ rate: 48000, channels: 2, frameSize: 960 }));
// decode
const pcmStream = getOpusStreamSomehow().pipe(new OpusDecoder({ rate: 48000, channels: 2, frameSize: 960 }));
QueryResolver#resolve
to return sanitized query and typepauseOnEmpty
option (Enabled by default)willAutoPlay
event for autoplay track selectionqueueDelete
event not getting emitted properlyPlayer#create
method to create new instance of Player
(overrides singleton behavior)Full Changelog: https://github.com/Androz2091/discord-player/compare/[email protected]@6.6.2
feat(YoutubeExtractor): add support for youtube-ext (#1786)
You can now use youtube-ext
as a youtube streaming lib.
feat(AttachmentsExtractor): add support for mediaplex metadata parser
You can install mediaplex
package to add support for attachments metadata (duration, title, author, etc).
fix(SpotifyExtractor): fix spotifySong not loading
The bug with spotifySong
query type has been fixed. It should now properly load spotify tracks with /intl-COUNTRY_CODE
included
Full Changelog: https://github.com/Androz2091/discord-player/compare/@discord-player/[email protected]@6.6.1