diff --git a/Music-Bot.py b/Music-Bot.py index 99e7f1b..9bb64c2 100644 --- a/Music-Bot.py +++ b/Music-Bot.py @@ -84,12 +84,12 @@ else: before_options="-threads 2", options=ffmpeg_options), data=data) - class Google(discord.ui.View): + class Youtube(discord.ui.View): def __init__(self, query: str): super().__init__() # We need to quote the query string to make a valid url. Discord will raise an error if it isn't valid. query = quote_plus(query) - url = f"https://www.google.com/search?q={query}" + url = f"https://www.youtube.com/results?search_query={query}" # Link buttons cannot be made with the # decorator, so we have to manually create one.