larsrickert / discord-player-plus

🤖 Library for creating discord music bots using discord.js v14 written in TypeScript.
https://discordplayerplus.lars-rickert.de
MIT License
7 stars 2 forks source link

fix(engines): remove unnecessary array for `search` method #17

Closed larsrickert closed 1 year ago

larsrickert commented 1 year ago

BREAKING CHANGE: Changed type PlayerEngine and all pre-built engines (youtube, spotify and file) to return SearchResult|null instead of SearchResult[]. The previous return value just wrapped the search result into an array so its length was always 1. Thats why it has been changed. BREAKING CHANGE: player.search() now returns SearchResult|null instead of SearchResult[]

github-actions[bot] commented 1 year ago

:tada: This PR is included in version 2.0.0-rc.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

github-actions[bot] commented 1 year ago

:tada: This PR is included in version 2.0.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: