[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:
kennnyshiwa 2019-11-22 18:53:42 -05:00 committed by Michael H
parent 4b62598a3d
commit a3140b6659
2 changed files with 80 additions and 76 deletions

View File

@ -0,0 +1 @@
Add typing indicator to playlist dedupe

View File

@ -3737,6 +3737,7 @@ class Audio(commands.Cog):
[p]playlist dedupe MyGlobalPlaylist --scope Global [p]playlist dedupe MyGlobalPlaylist --scope Global
[p]playlist dedupe MyPersonalPlaylist --scope User [p]playlist dedupe MyPersonalPlaylist --scope User
""" """
async with ctx.typing():
if scope_data is None: if scope_data is None:
scope_data = [PlaylistScope.GUILD.value, ctx.author, ctx.guild, False] scope_data = [PlaylistScope.GUILD.value, ctx.author, ctx.guild, False]
scope, author, guild, specified_user = scope_data scope, author, guild, specified_user = scope_data
@ -3813,6 +3814,7 @@ class Audio(commands.Cog):
scope=scope_name, scope=scope_name,
), ),
) )
return
else: else:
await self._embed_msg( await self._embed_msg(
ctx, ctx,
@ -3820,6 +3822,7 @@ class Audio(commands.Cog):
name=playlist.name, id=playlist.id, scope=scope_name name=playlist.name, id=playlist.id, scope=scope_name
), ),
) )
return
@checks.is_owner() @checks.is_owner()
@playlist.command(name="download", usage="<playlist_name_OR_id> [v2=False] [args]") @playlist.command(name="download", usage="<playlist_name_OR_id> [v2=False] [args]")