precision mock command for slash

This commit is contained in:
Mylloon 2021-05-31 23:28:54 +02:00
parent c9b759e7b8
commit d6f3b6462c

View file

@ -140,7 +140,7 @@ class Fun(commands.Cog):
@commands.command(name='mock') @commands.command(name='mock')
async def _mock(self, ctx): async def _mock(self, ctx):
"""Se moque du message précédent""" """Se moque du message précédent. - Slash command not available"""
first = 0 first = 0
suite_auteur = None suite_auteur = None
temps_limite = (await ctx.message.channel.history(limit = 2).flatten())[1].created_at - timedelta(minutes = 5) temps_limite = (await ctx.message.channel.history(limit = 2).flatten())[1].created_at - timedelta(minutes = 5)