mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 12:33:30 +01:00
feat(Permissions): add valueOf method (#2363)
This commit is contained in:
@@ -150,6 +150,10 @@ class Permissions {
|
|||||||
return this.missing(permissions, !explicit);
|
return this.missing(permissions, !explicit);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
valueOf() {
|
||||||
|
return this.bitfield;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Data that can be resolved to give a permission number. This can be:
|
* Data that can be resolved to give a permission number. This can be:
|
||||||
* * A string (see {@link Permissions.FLAGS})
|
* * A string (see {@link Permissions.FLAGS})
|
||||||
|
|||||||
Reference in New Issue
Block a user