Skip to content

Commit

Permalink
Update discord.go
Browse files Browse the repository at this point in the history
  • Loading branch information
iopred authored Oct 19, 2020
1 parent 545830e commit e0fecce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discord.go
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ func (d *Discord) IsModerator(message Message) bool {
isChannelOwner := d.IsChannelOwner(message)

p, err := d.MessagePermissions(message)
if err == nil {
if err != nil {
return isChannelOwner
}

Expand Down

0 comments on commit e0fecce

Please sign in to comment.