Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Migrate to Discord.js v13 (#624)
* chore: Use Node v16 * chore(deps): Update discord.js * chore(deps): Install @discordjs/voice * feat: Switch to Node.js v16 * feat(AboutCommand): Migrate to Discord.js v13 * feat(EvalCommand): Migrate to Discord.js v13 * feat(HelpCommand): Migrate to Discord.js v13 * feat(InviteCommand): Migrate to Discord.js v13 * feat(PingCommand): Migrate to Discord.js v13 * feat(main): Migrate to Discord.js v13 * feat(config): Remove compat layer * feat(bot): Migrate to Discord.js v13 * feat(Util): Migrate to Discord.js v13 * feat(createEmbed): Migrate to Discord.js v13 * feat(CommandManager): Migrate to Discord.js v13 * feat(ReadyEvent): Migrate to Discord.js v13 * feat(PlayCommand): Migrate non music methods * feat(MessageEvent): Migrate to Discord.js v13 * chore: Comment file that hasn't migrated yet. * feat(ServerQueue): Migrate to Discord.js v13 * feat(Guild): Migrate to Discord.js v13 * fix(MessageEvent): MessageEvent -> MessageCreateEvent * feat(PlayCommand): Migrate to Discord.js v13 * chore(PlayCommand): Add todo for Volume support * feat(NowPlayingCommand): Migrate to v13 * feat(commands): Migrate to Discord.js v13 * fix(PlayCommand): Return if serverQueue is undefined * feat(PlayCommand): Wait 15 seconds for the connection to be ready before playing * refactor(Util): Refactor getGuildsCount, getChannelsCount. getUsersCount, and getTotalPlaying * chore(Util): Fix typings * fix(Util): Use fs.readFile instead of importing it in getPackageJSON * fix(getPackageJSON): Fix getPackageJSON no valid main entry when trying to get jukebox's package.json * fix(AboutCommand): Fix malformed AboutCommand message caused by indents * chore: fix typings * feat(MusicHelper): Migrate to Discord.js v13 * fix(MusicHelper): this -> that * fix(downloader): Remove highWaterMark We don't need it anymore, this is a workaround for #552 That error doesn't appear anymore on the new @discordjs/voice And setting highWaterMark on the new voice system would cause lag So I decided to delete the highWaterMark option instead. * fix(ServerQueue): General fixes for music commands * feat(VolumeCommand): Migrate to Discord.js v13 * fix(PlayCommand): Remove this listener as it conflicts with VoiceStateUpdateEvent * fix(PlayCommand): Don't send Start playing message when unpaused * feat(VoiceStateUpdateEvent): Migrate to Discord.js v13
- Loading branch information