make slash command for lyrics with an optional arg
This commit is contained in:
parent
c565ebc72c
commit
2053495e20
1 changed files with 2 additions and 1 deletions
|
@ -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 <song>`.")
|
||||
@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)
|
||||
|
|
Reference in a new issue