From 2053495e20ec86b50ca3723fcc14d0dbb36df0aa Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sun, 22 Aug 2021 21:16:30 +0200 Subject: [PATCH] make slash command for lyrics with an optional arg --- src/cogs/music.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cogs/music.py b/src/cogs/music.py index ef434ea..dde70d3 100644 --- a/src/cogs/music.py +++ b/src/cogs/music.py @@ -1006,8 +1006,9 @@ class Music(commands.Cog, wavelink.WavelinkMixin): await addReaction(ctx.message, 2) await mySendHidden(ctx, fromSlash, f"Aucune musique demandé... `{ctx.prefix}lyrics/l/lyrics `.") @cog_ext.cog_slash(name="lyrics", description = "Affiche les paroles de la musique en cours, ou de la chanson spécifiée.") - async def __lyrics(self, ctx, song: str): + async def __lyrics(self, ctx, song: str = None): """Slash command""" + ctx.prefix = "/" return await self._lyrics(ctx = ctx, song = song, fromSlash = True) @commands.command(name='lyricsromanized', aliases = ['lr', 'lyricromanized'], hidden = True)