diff --git a/state/state.go b/state/state.go index 597abe79..bb650422 100644 --- a/state/state.go +++ b/state/state.go @@ -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 }