Hello! I'm trying to programmatically disable buttons based on groups that ctx.username is part of.

Hello! I'm trying to programmatically disable buttons based on groups that ctx.username is part of. Wondering how do we retrieve the groups of a user in python?
Was this page helpful?