1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-11-01 04:24:19 +00:00

gateway: Add undocumented ConversationSummaryUpdateEvent

This commit is contained in:
diamondburned 2024-01-02 01:35:16 -08:00
parent dffb6400fe
commit f7f228a848
No known key found for this signature in database
GPG key ID: D78C4471CE776659

View file

@ -667,6 +667,36 @@ type RelationshipRemoveEvent struct {
discord.Relationship discord.Relationship
} }
// ConversationSummaryUpdateEvent is a dispatch event. It is undocumented.
type ConversationSummaryUpdateEvent struct {
ChannelID discord.ChannelID `json:"channel_id"`
GuildID discord.GuildID `json:"guild_id,omitempty"`
Summaries []ConversationSummary `json:"summaries"`
}
// ConversationSummary is a structure for ConversationSummaryUpdateEvent.
// It is undocumented.
type ConversationSummary struct {
Unsafe bool `json:"unsafe"`
// Topic is the topic of the conversation.
Topic string `json:"topic"`
// ShortSummary is a short summary of the conversation.
// It is in sentence form.
ShortSummary string `json:"summ_short"`
// People is a list of user IDs in the conversation.
People []discord.UserID `json:"people"`
// StartID is the ID of the first message in the conversation.
StartID discord.MessageID `json:"start_id"`
// EndID is the ID of the last message in the conversation.
EndID discord.MessageID `json:"end_id"`
// MessageIDs is a list of message IDs in the conversation.
MessageIDs []discord.MessageID `json:"message_ids"`
// ID is some kind of ID that identifies the conversation?
ID discord.Snowflake `json:"id"`
// Count is the number of messages in the conversation.
Count int `json:"count"`
}
// ReadyEvent is a dispatch event for READY. // ReadyEvent is a dispatch event for READY.
// //
// https://discord.com/developers/docs/topics/gateway#ready // https://discord.com/developers/docs/topics/gateway#ready