Skip to content
This repository was archived by the owner on Mar 5, 2023. It is now read-only.

Commit eee9bcb

Browse files
authored
Remove remaining undocumented structs and fields (bwmarrin#1225)
* feat(events)!: drop undocumented structs and fields * feat(structs)!: drop undocumented structs and fields * fix(eventhandlers): regenerate event handling code * fix(Ready): add PrivateChannels back
1 parent 3cee831 commit eee9bcb

File tree

3 files changed

+8
-267
lines changed

3 files changed

+8
-267
lines changed

eventhandlers.go

Lines changed: 0 additions & 144 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

events.go

Lines changed: 6 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -36,19 +36,13 @@ type Event struct {
3636

3737
// A Ready stores all data for the websocket READY event.
3838
type Ready struct {
39-
Version int `json:"v"`
40-
SessionID string `json:"session_id"`
41-
User *User `json:"user"`
42-
ReadState []*ReadState `json:"read_state"`
43-
PrivateChannels []*Channel `json:"private_channels"`
44-
Guilds []*Guild `json:"guilds"`
39+
Version int `json:"v"`
40+
SessionID string `json:"session_id"`
41+
User *User `json:"user"`
42+
Guilds []*Guild `json:"guilds"`
43+
PrivateChannels []*Channel `json:"private_channels"`
4544

46-
// Undocumented fields
47-
Settings *Settings `json:"user_settings"`
48-
UserGuildSettings []*UserGuildSettings `json:"user_guild_settings"`
49-
Relationships []*Relationship `json:"relationships"`
50-
Presences []*Presence `json:"presences"`
51-
Notes map[string]string `json:"notes"`
45+
// TODO: Application and Shard
5246
}
5347

5448
// ChannelCreate is the data for a ChannelCreate event.
@@ -245,12 +239,6 @@ type GuildScheduledEventUserRemove struct {
245239
GuildID string `json:"guild_id"`
246240
}
247241

248-
// MessageAck is the data for a MessageAck event.
249-
type MessageAck struct {
250-
MessageID string `json:"message_id"`
251-
ChannelID string `json:"channel_id"`
252-
}
253-
254242
// MessageCreate is the data for a MessageCreate event.
255243
type MessageCreate struct {
256244
*Message
@@ -314,16 +302,6 @@ type Resumed struct {
314302
Trace []string `json:"_trace"`
315303
}
316304

317-
// RelationshipAdd is the data for a RelationshipAdd event.
318-
type RelationshipAdd struct {
319-
*Relationship
320-
}
321-
322-
// RelationshipRemove is the data for a RelationshipRemove event.
323-
type RelationshipRemove struct {
324-
*Relationship
325-
}
326-
327305
// TypingStart is the data for a TypingStart event.
328306
type TypingStart struct {
329307
UserID string `json:"user_id"`
@@ -337,20 +315,6 @@ type UserUpdate struct {
337315
*User
338316
}
339317

340-
// UserSettingsUpdate is the data for a UserSettingsUpdate event.
341-
type UserSettingsUpdate map[string]interface{}
342-
343-
// UserGuildSettingsUpdate is the data for a UserGuildSettingsUpdate event.
344-
type UserGuildSettingsUpdate struct {
345-
*UserGuildSettings
346-
}
347-
348-
// UserNoteUpdate is the data for a UserNoteUpdate event.
349-
type UserNoteUpdate struct {
350-
ID string `json:"id"`
351-
Note string `json:"note"`
352-
}
353-
354318
// VoiceServerUpdate is the data for a VoiceServerUpdate event.
355319
type VoiceServerUpdate struct {
356320
Token string `json:"token"`

0 commit comments

Comments
 (0)