on_raw_reaction_add – client.get_user(payload.user_id) returns None

With discord.py 1.5.x setting up intents is necessary for your events to work properly.

  1. Go to your discord developer portal.
  2. Click your application.
  3. Click your bot.
  4. Scroll down to “Privileged Gateway Intents” and turn on both.

Add this to your code:

intents = discord.Intents.default()

# If you are using client
client = discord.Client(intents=intents)

# If you are using bot
bot = commands.Bot(command_prefix='!', intents=intents)

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top