Skip to content Skip to sidebar Skip to footer

Discord.py On_raw_reaction_remove(payload) Passing User_id As None

I've written a script to assign roles when a server member reacts using a certain emoji, but when hosting the code in Heroku or ibm cloud none is the value for user_id. Sepcificall

Solution 1:

derw is correct.

I had discord.py 1.4.1 installed locally. Ran py -3 -m pip install -U discord.py and installed 1.5.0. After install my results were consistent between local and remote (IBM/Heroku). Followed derw's answer here and enabled Privileged Gateway Intents on the Discord Developer Portal (Presence Intent and Server Members Intent), then replaced this

client = commands.Bot(command_prefix = ".")

with this

intents = discord.Intents.all()
client = discord.Client(intents=intents)

Thanks derw!

Post a Comment for "Discord.py On_raw_reaction_remove(payload) Passing User_id As None"