Apply suggestions from code review

Co-authored-by: Vuks <51289041+Vuks69@users.noreply.github.com>
This commit is contained in:
Draper
2020-09-26 08:47:20 +01:00
committed by GitHub
parent a13850067c
commit 318a006dac
4 changed files with 8 additions and 8 deletions

View File

@@ -630,12 +630,12 @@ class PlayerCommands(MixinMeta, metaclass=CompositeMetaClass):
"""Pick a track with a search.
Use `[p]search list <search term>` to queue all tracks found on YouTube. Use `[p]search sc
<search term>` will search SoundCloud instead of YouTube.
<search term>` to search on SoundCloud instead of YouTube.
"""
if not isinstance(query, (str, Query)):
raise RuntimeError(
f"Expect 'query' to be a string or Query object but recieved: {type(query)} is an unexpected argument type please report it."
f"Expected 'query' to be a string or Query object but received: {type(query)} - this is an unexpected argument type, please report it."
)
async def _search_menu(