Skip to content

Commit

Permalink
feat(Permissions): add valueOf method (#2363)
Browse files Browse the repository at this point in the history
  • Loading branch information
appellation authored and SpaceEEC committed May 8, 2018
1 parent e5e59cc commit 2d83126
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/util/Permissions.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,10 @@ class Permissions {
return this.missing(permissions, !explicit);
}

valueOf() {
return this.bitfield;
}

/**
* Data that can be resolved to give a permission number. This can be:
* * A string (see {@link Permissions.FLAGS})
Expand Down

0 comments on commit 2d83126

Please # to comment.