permissionsForMember

suspend fun GuildChannel.permissionsForMember(memberId: Snowflake): Permissions

Given a guild channel, attempt to calculate the effective permissions for the member corresponding with the given ID, checking the parent channel if this one happens to be a thread.

Parameters

memberId

Member ID to calculate for


suspend fun GuildChannel.permissionsForMember(user: UserBehavior): Permissions

Given a guild channel, attempt to calculate the effective permissions for given user, checking the parent channel if this one happens to be a thread.

Parameters

user

User to calculate for