Skip to content

Commit

Permalink
state: Add missing error check
Browse files Browse the repository at this point in the history
  • Loading branch information
twoscott authored and Diamond committed Nov 4, 2023
1 parent ff709fc commit 4ef1793
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions state/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,9 @@ func (s *State) Permissions(
if merr != nil {
return 0, fmt.Errorf("failed to get member: %w", merr)
}
if rerr != nil {
return 0, fmt.Errorf("failed to get roles: %w", rerr)
}

return discord.CalcOverrides(*g, *ch, *m, rs), nil
}
Expand Down

0 comments on commit 4ef1793

Please sign in to comment.