mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-01-26 06:18:25 +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
|
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(
|
func CalcOverrides(
|
||||||
guild Guild, channel Channel, member Member, roles []Role) Permissions {
|
guild Guild, channel Channel, member Member, roles []Role) Permissions {
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue