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:
parent
f7f228a848
commit
796b798f6a
|
@ -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 {
|
||||
|
||||
|
|
Loading…
Reference in a new issue