feat(Permissions): add valueOf method (#2363)

This commit is contained in:
Will Nelson
2018-02-28 07:48:06 -08:00
committed by SpaceEEC
parent e5e59cce32
commit 2d831269ab

View File

@@ -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})