#check if a member has a certain role

1 messages · Page 1 of 1 (latest)

upper pier
#

Hi Im still using v4 because paginator just didnt seem to work with v5 and I cant seem to find here how to check if a member has a certain role

gusty masonBOT
#

Hey! Once your issue is solved, press the button below to close this thread!

upper pier
#

I bet its something simple im just missing here

astral hinge
#

I would definitely recommend moving to v5, as paginators work very well. To solve your issue you could do: py if ROLE_ID in member.roles: print(f"Has the role {ROLE_ID}")

upper pier
#

I think I tried member.roles already and it said it didnt exist or sum

#

let me tr

astral hinge
#

It is there according to the v4 docs

upper pier
astral hinge
#

I don't know why that is, and no maintainers can really help anymore

#

There's the docs

upper pier
#

I think im just gonna try to switch to v5 now

astral hinge
#

There's a migration guide to help

upper pier
#

wjere

upper pier
#

alr ty

#

solved

#

it was ctx.author.roles lmao