You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Permissions are stored in a variable-length integer serialized into a string, and are calculated using bitwise operations.
[...]
In API v8 and above, all permissions are serialized as strings, including the allow and deny fields in overwrites.
[...]
In API v6 (now deprecated), the permissions, allow, and deny fields in roles and overwrites are still serialized as a number
However, when receiving GUILD_AUDIT_LOG_ENTRY_CREATE events, these fields do come as integers.
This didn't seem to be the case before (I'm only noticing these errors on my bot now, at least), but I haven't tested enough to see if it's an audit log only thing.
Description
The docs state the following about permissions:
However, when receiving
GUILD_AUDIT_LOG_ENTRY_CREATE
events, these fields do come as integers.This didn't seem to be the case before (I'm only noticing these errors on my bot now, at least), but I haven't tested enough to see if it's an audit log only thing.
Steps to Reproduce
(redacted IDs and role name)
Expected Behavior
Permissions should come serialized as strings.
Current Behavior
Permissions come serialized as numbers.
Screenshots/Videos
No response
Client and System Information
Kord
Linux 64-bit
The text was updated successfully, but these errors were encountered: