-
-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to deserialize gateway ready event due to missing fields #2216
Comments
And a similar issue with |
I wasn't able to pinpoint what exact fields needed fixing for the presence update but I got it to work by adding |
And one more: It seems the fields |
Hmm that seems to go against what the documentation tells us https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-structure |
For the background, I'm using twilight to interact with the midjourney bot. When posting a new InteractionCreate(
InteractionCreate(
Interaction {
app_permissions: None,
application_id: None,
channel: None,
channel_id: None,
data: None,
guild_id: None,
guild_locale: None,
id: Id<InteractionMarker>(1114365312637337740),
kind: None,
locale: None,
member: None,
message: None,
token: None,
user: None,
},
),
) |
Does that mean that you are using it with a user token instead of a bot token? |
Yes, I do. |
We generally only support the bot API, any other usage will be largely unsupported. As it is not documented and is against the Terms of Service of Discord. |
So what about the remaining deserialization issues? |
Do they happen when you connect with a bot token? |
I have no idea but this is about |
Because they are documented to always be present when connecting with a bot user: If you run into issues while connected with a bot account let us know. |
Sorry to hear that. Anyway, thanks for your time. |
Hello, I was just testing the hello world example (https://github.com/twilight-rs/twilight/blob/main/examples/gateway-request-members.rs) and ran into an issue with the ready event not being deserializable. twilight expects two fields to be present that were not in my case, the following changes fixed it for me:
The text was updated successfully, but these errors were encountered: