You can now get a member or role's permissions for a guild or channel without calculating them yourself, using the new Get Guild Member Permissions, Get Guild Role Permissions, Get Channel Member Permissions, and Get Channel Role Permissions endpoints.
We've added four new endpoints to get a member or role's permissions for a guild or channel.
The channel endpoints apply implicit permission masking by default. Set implicit=false to skip this masking.