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
@lsdimagine I wish I could give you more information on that. I'm developing a bot for a discord server that I don't own and this activity exists there
Description
I've witnessed the
GUILD_CREATE
event sending through an activity with anapplication_id
of1
. Note that this is a numerical 1, not a string.The docs show that the data type here should be a
snowflake
, and the snowflake docs say that this should always be a string.Out of 1142 activities found on my
GUILD_CREATE
event, the following is the one and only activity with a non-string application_id.Steps to Reproduce
Sorry but I'm not sure on this one.
I assume it's related the the way the activity was created but I have no visibility of that.
This was happening for a specific guild
517776987419574272
.I am using the standard wsapi in
discordgo
(links further on under client and system information), listening forGUILD_CREATE
events.Expected Behavior
String values to be sent across for any fields with a
snowflake
data type.Current Behavior
A numerical
1
being sent as a value for asnowflake
data type, in one out of many cases.Screenshots/Videos
No response
Client and System Information
I am using https://github.com/bwmarrin/discordgo v0.27.1.
I have adjusted to use a fork (https://github.com/TomWright/discordgo) which gets around this issue with this change:
TomWright/discordgo@2d4dd73
The client is runner under go version
go1.22.1
The text was updated successfully, but these errors were encountered: