permissions_new from API

I am assuming the permissions_new property being returned from the API is the new Bitwise permissions flags they recently implemented. My question is, can I rely on this property remaining or will they eventually swap it out with the usual permissions property? Also I was trying to type the result with RESTAPIPartialCurrentUserGuild but its missing this new permissions property, does anyone know which type includes it? Thanks
11 Replies
d.js docs
d.js docs2y ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
Kinect3000
Kinect30002y ago
Which api version are you using?
Tribe
Tribe2y ago
10
Kinect3000
Kinect30002y ago
Does the .permissions value still log as number?
Tribe
Tribe2y ago
yeah it does
Kinect3000
Kinect30002y ago
Either ur using an old api version, or Discord made a huge boo boo w/ documentation I would ask in the dapi server
Tribe
Tribe2y ago
hmmm maybe I have a typo somewhere, will double check and follow up youre right I had copied over the URL from discord docs which doesn't have the version in the URL so I guess it does fall back to a really old version
Kinect3000
Kinect30002y ago
Yea, I think it defaults to v8 iirc Oh jeez, it’s v6
Tribe
Tribe2y ago
wow
Kinect3000
Kinect30002y ago
Forgot that its removal was postponed
Tribe
Tribe2y ago
thats a lotta versions to support at once