mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 16:43:31 +01:00
feat(Permissions): add valueOf method (#2363)
This commit is contained in:
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user