mirror of
https://github.com/danbulant/discord.js
synced 2026-05-30 04:41:11 +00:00
feat(Permissions): add valueOf method (#2363)
This commit is contained in:
parent
e5e59cce32
commit
2d831269ab
1 changed files with 4 additions and 0 deletions
|
|
@ -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})
|
||||
|
|
|
|||
Loading…
Reference in a new issue