mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-07 11:48:55 -05:00
[audio] adds typing indicator to playlist dedupe (#3058)
* [audio] adds typing indicator to playlist dedupe * [audio] not sure what happened here lol * [audio] forgot the return * add changelog * [audio] fix for black
This commit is contained in:
parent
4b62598a3d
commit
a3140b6659
1
changelog.d/audio/3058.enhancement.rst
Normal file
1
changelog.d/audio/3058.enhancement.rst
Normal file
@ -0,0 +1 @@
|
||||
Add typing indicator to playlist dedupe
|
||||
@ -3737,6 +3737,7 @@ class Audio(commands.Cog):
|
||||
[p]playlist dedupe MyGlobalPlaylist --scope Global
|
||||
[p]playlist dedupe MyPersonalPlaylist --scope User
|
||||
"""
|
||||
async with ctx.typing():
|
||||
if scope_data is None:
|
||||
scope_data = [PlaylistScope.GUILD.value, ctx.author, ctx.guild, False]
|
||||
scope, author, guild, specified_user = scope_data
|
||||
@ -3813,6 +3814,7 @@ class Audio(commands.Cog):
|
||||
scope=scope_name,
|
||||
),
|
||||
)
|
||||
return
|
||||
else:
|
||||
await self._embed_msg(
|
||||
ctx,
|
||||
@ -3820,6 +3822,7 @@ class Audio(commands.Cog):
|
||||
name=playlist.name, id=playlist.id, scope=scope_name
|
||||
),
|
||||
)
|
||||
return
|
||||
|
||||
@checks.is_owner()
|
||||
@playlist.command(name="download", usage="<playlist_name_OR_id> [v2=False] [args]")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user