computePermissions

suspend fun computePermissions(user: User, channel: GuildChannel, restClient: RestClient): Permissions(source)

Compute the permissions for the given user in the channel. Takes into account the permission overwrites and whether the user is an administrator.

Parameters

user

the user whose permissions should be computed

channel

the channel to compute the permissions for

restClient

the client to use for lookup


Compute the permissions for the given guild member in the channel in the guild. Takes into account the permission overwrites and whether or not the user is an administrator.

Parameters

member

the member whose permissions should be computed

channel

the channel to compute the permissions for

guild

the guild which owns the channel