English 中文(简体)
Automatically deleting reactions on a message if the message author is equal to a username not working in discord.py
原标题:
  • 时间:2023-06-10 03:03:24
  •  标签:
  • discord.py

When the reaction is added, it doesn t get deleted, and there is no error anywhere.

@client.event
    async def on_reaction_add(reaction, user):
        if reaction.message.author ==  sample#0000 :
            await reaction.message.clear_reactions()

It works without the author check. I am new to discord bots, so whats wrong with this?

问题回答

暂无回答




相关问题
Use both buttons and dropdowns in discord py v2

I m trying to create a command in my Discord bot using discord.py where I want to use both buttons and dropdowns (select menus) together, similar to the help command in Dank Memer bot. I have created ...

discord.py and tkinter: Message sending not working

Here is my code import threading import discord from discord.ext import commands, tasks from discord.ext.commands import has_permissions import asyncio activity = discord.Game(name="/help") ...

热门标签