Open Macintosh-Fan opened 1 year ago
I'm not sure where this would be used, since for that you would need the discord_guild_member, which in at least all Discord API responses I know, has permissions
field available.
As for the messages in #concord-help, it seems like there was a misunderstanding, since the MESSAGE_CREATE
event doesn't include a member
field
Edit: Nevermind, but Discord's get guild member only returns the IDs of the roles, you'll need to get them fetched, so in my opinion, we should find another approach to get the permissions
Describe the feature
Check to see if server member has a permission of some sort.
Though, maybe a function like
bool discord_member_has_permission(const struct discord_guild_member* member, unsigned int code)
(maybeunsigned int
should be something else) could also be implemented.Additional context
Discord chat (credit goes to @lcsmuller).