Skip to content

Fixed RequireBotPermissions attribute.

Mateusz Brawański requested to merge github/fork/Kiritsu/pr-1 into master

Created by: Kiritsu

Make sure you familiarize yourself with our contributing guidelines.

Summary

It should fix the RequireBotPermissions attribute when you put at least 2 permissions. Before the change, if the bot had one of the permissions put in the attribute, the precondition would pass.

Details

if ((pbot & this.Permissions) != 0) became if ((pbot & this.Permissions) == this.Permissions)

It was already fixed in RequirePermissionsAttribute and RequireUserPermissionsAttribute.

Merge request reports

Loading