mirror of
https://github.com/Paillat-dev/Botator.git
synced 2026-01-02 01:06:19 +00:00
Update chat.py
This commit is contained in:
@@ -83,8 +83,11 @@ class Chat (discord.Cog) :
|
||||
@discord.message_command(name="Downvote", description="Downvote a message")
|
||||
@commands.cooldown(1, 60, commands.BucketType.user)
|
||||
async def downvote(self, ctx: discord.ApplicationContext, message: discord.Message):
|
||||
if message.author.id == self.bot.user.id:
|
||||
modal = MyModal(message)
|
||||
await ctx.send_modal(modal)
|
||||
else:
|
||||
await ctx.respond("You can't downvote a message that is not from me !", ephemeral=True)
|
||||
|
||||
@downvote.error
|
||||
async def downvote_error(self, ctx, error):
|
||||
|
||||
Reference in New Issue
Block a user