specify name of discord command

This commit is contained in:
Mylloon 2021-07-29 23:36:02 +02:00
parent d316cb0bc8
commit bebc8bca72

View file

@ -9,7 +9,7 @@ class Utils(commands.Cog):
self.client = client
self.keys = load(["DISCORD"])
@commands.command()
async def discord(self, ctx: commands.Context):
@commands.command(name="discord")
async def _discord(self, ctx: commands.Context):
"""Envoie le lien de ton serveur Discord"""
await ctx.send(f"@{ctx.author.name}, Rejoins mon Discord {self.keys['DISCORD']} !")