on_member_update not triggerring
Question:
Intents are enabled on discord developer portal, but it still isn’t triggering
import discord
intents = discord.Intents.default()
intents.members = True
intents.presences = True
@client.event
async def on_member_update(before, after):
print('working')
Answers:
It should be like this
intents = discord.Intents().all()
client = commands.Bot(command_prefix = '[your prefix here]', intents = intents)
Intents are enabled on discord developer portal, but it still isn’t triggering
import discord
intents = discord.Intents.default()
intents.members = True
intents.presences = True
@client.event
async def on_member_update(before, after):
print('working')
It should be like this
intents = discord.Intents().all()
client = commands.Bot(command_prefix = '[your prefix here]', intents = intents)