mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
[Audio] Add songs when search-queuing (#2513)
Searching for a song and pressing the reaction to queue a song would not add the song to the queue if `[p]audioset maxlength` was off. This was an omission from #2465.
This commit is contained in:
parent
d52b3eaf21
commit
1c22b212c2
@ -2212,6 +2212,8 @@ class Audio(commands.Cog):
|
|||||||
player.add(ctx.author, search_choice)
|
player.add(ctx.author, search_choice)
|
||||||
else:
|
else:
|
||||||
return await self._embed_msg(ctx, _("Track exceeds maximum length."))
|
return await self._embed_msg(ctx, _("Track exceeds maximum length."))
|
||||||
|
else:
|
||||||
|
player.add(ctx.author, search_choice)
|
||||||
if not player.current:
|
if not player.current:
|
||||||
await player.play()
|
await player.play()
|
||||||
await ctx.send(embed=embed)
|
await ctx.send(embed=embed)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user