mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-07 19:58:54 -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 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]")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user