Skip to content

Commit

Permalink
plugins: (tenor-delete) Update to new permission system
Browse files Browse the repository at this point in the history
  • Loading branch information
5HT2 committed Oct 13, 2022
1 parent 6795682 commit 285b9f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/tenor-delete/tenor-delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func TenorDeleteResponse(r bot.Response) {
}

func TenorDeleteCommand(c bot.Command) error {
if err := cmd.HasPermission("moderate", c); err != nil {
if err := cmd.HasPermission(c, cmd.PermModerate); err != nil {
return err
}

Expand Down

0 comments on commit 285b9f8

Please sign in to comment.