-
-
Notifications
You must be signed in to change notification settings - Fork 294
Description
Describe the bug
The public_flags (and perhaps other) parameters when sent to connecting clients over the Gateway websocket and certain API endpoints like api/v9/channels/channelId/webhooks are sent as strings and not ints.
So, when using DiscordGo, it complains about public_flags being a string.
To Reproduce
Steps to reproduce the behavior:
- Do anything that tries to deserialize these fields into an int. (i.e. DiscordGo)
Expected behavior
Sent value is an int. Library/client/bot does not complain about the data types
Console Logs
Feb 23 11:43:11 sike matterbridge[2246857]: 2026/02/23 11:43:11 [DG0] wsapi.go:646:onEvent() error unmarshalling MESSAGE_CREATE event, json: cannot unmarshal string into Go struct field User.message.author.public_flags of type discordgo.UserFlags
System Information (please complete the following information):
- OS: Ubuntu
- Version (If not applicable skip): 24.04
- Node Version: 24.13.1
- Python 3 Version: Python 3.13.12
Env and Software info
- Release: nightly
- Branch (if release is not applicable): master
- Commit Hash (if release is not applicable): 785f53e
- Database: 16.11
- Reverse Proxy: cloudflared
- Thread Count: default