Skip to content

Commit

Permalink
Revert "Remove remaining undocumented structs and fields (bwmarrin#1225
Browse files Browse the repository at this point in the history
…)"

This reverts commit eee9bcb.
  • Loading branch information
tulir committed Sep 13, 2022
1 parent 9effc3f commit bbf4447
Show file tree
Hide file tree
Showing 3 changed files with 257 additions and 4 deletions.
144 changes: 144 additions & 0 deletions eventhandlers.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 31 additions & 2 deletions events.go
Expand Up @@ -51,8 +51,6 @@ type Ready struct {
Notes map[string]string `json:"notes"`

Users []*User `json:"users"`

// TODO: Application and Shard
}

// ChannelCreate is the data for a ChannelCreate event.
Expand Down Expand Up @@ -249,6 +247,13 @@ type GuildScheduledEventUserRemove struct {
GuildID string `json:"guild_id"`
}

// MessageAck is the data for a MessageAck event.
type MessageAck struct {
Version int `json:"version"`
MessageID string `json:"message_id"`
ChannelID string `json:"channel_id"`
}

// MessageCreate is the data for a MessageCreate event.
type MessageCreate struct {
*Message
Expand Down Expand Up @@ -312,6 +317,16 @@ type Resumed struct {
Trace []string `json:"_trace"`
}

// RelationshipAdd is the data for a RelationshipAdd event.
type RelationshipAdd struct {
*Relationship
}

// RelationshipRemove is the data for a RelationshipRemove event.
type RelationshipRemove struct {
*Relationship
}

// TypingStart is the data for a TypingStart event.
type TypingStart struct {
UserID string `json:"user_id"`
Expand All @@ -325,6 +340,20 @@ type UserUpdate struct {
*User
}

// UserSettingsUpdate is the data for a UserSettingsUpdate event.
type UserSettingsUpdate map[string]interface{}

// UserGuildSettingsUpdate is the data for a UserGuildSettingsUpdate event.
type UserGuildSettingsUpdate struct {
*UserGuildSettings
}

// UserNoteUpdate is the data for a UserNoteUpdate event.
type UserNoteUpdate struct {
ID string `json:"id"`
Note string `json:"note"`
}

// VoiceServerUpdate is the data for a VoiceServerUpdate event.
type VoiceServerUpdate struct {
Token string `json:"token"`
Expand Down

0 comments on commit bbf4447

Please sign in to comment.