1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-11-01 04:24:19 +00:00

discord: Add comment for CalcOverrides

This commit is contained in:
diamondburned 2024-01-02 20:59:53 -08:00
parent f7f228a848
commit 796b798f6a
No known key found for this signature in database
GPG key ID: D78C4471CE776659

View file

@ -170,6 +170,8 @@ func (p Permissions) Add(perm Permissions) Permissions {
return p | perm
}
// CalcOverrides calculates the permissions for a member in the given channel.
// Most of the time, you should use state.State.Permissions instead.
func CalcOverrides(
guild Guild, channel Channel, member Member, roles []Role) Permissions {