#How do I fetch a user's role? It keeps returning None! 😭

1 messages · Page 1 of 1 (latest)

muted hollow
#

thats the cache @thorny meteor. If the user is not in the cache, you need to check rest.

thorny meteor
#

Ohh. Thanks

#

How do I exactly do this

muted hollow
#

bot.rest.fetch_member

#

its on those lines

thorny meteor
#

Yeah nvm I just found that line

#

Thanks

muted hollow
#

and you need to await it

thorny meteor
brittle vessel
#

and platy #general-programming please if you can explain me

weak lichen
#

intents?

thorny meteor
#

Try it out for yourself

weak lichen
#

no

thorny meteor
#

You don't need to manually write it out anymore

weak lichen
#

just enable GUILD_MEMBERS intent

thorny meteor
#

Oh I know what you mean

#

in discord app?

#

that was already on

weak lichen
#

in code and dev portal

thorny meteor
#

and stop putting skulls on my shit its pissing me off

#

😭

thorny meteor