Skip to content

Commit

Permalink
discord: Add comment for CalcOverrides
Browse files Browse the repository at this point in the history
  • Loading branch information
diamondburned committed Jan 3, 2024
1 parent f7f228a commit 796b798
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions discord/permission.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down

0 comments on commit 796b798

Please sign in to comment.