on_raw_reaction_add not triggering

Viewed 50

I was coding a discord bot, and I had a self-roles function so that members can give themselves some roles. But In my recent development the code broke. It's not giving me an error, but it's not even triggering.

What I did was replace the contents of the function with a print, but the I don't get an output in the console. Can someone help?

import discord
from discord.utils import get
from discord.ext import commands
intents = discord.Intents().all()
intents.members = True
intents.presences = True

prefix = '!'
client = commands.Bot(command_prefix=prefix, intents=intents)

@client.event
async def on_raw_reaction_add(payload):
    print('works')
0 Answers
Related