This commit is contained in:
EEKIM10 2022-10-06 09:34:23 +01:00
parent 03fe4f8c44
commit c55091d870

View file

@ -14,8 +14,9 @@ class Events(commands.Cog):
def __init__(self, bot): def __init__(self, bot):
self.bot = bot self.bot = bot
@commands.Cog.listener() @commands.Cog.listener("on_raw_reaction_add")
async def on_raw_reaction_add(self, payload: discord.RawReactionActionEvent): async def on_raw_reaction_add(self, payload: discord.RawReactionActionEvent):
print("[raw_add]", payload)
channel: Optional[discord.TextChannel] = self.bot.get_channel(payload.channel_id) channel: Optional[discord.TextChannel] = self.bot.get_channel(payload.channel_id)
print("[raw_add]", channel) print("[raw_add]", channel)
if channel is not None: if channel is not None: