Bring back discrim too.
This commit is contained in:
parent
75a5d6bf62
commit
a11e81fc96
1 changed files with 6 additions and 16 deletions
12
structs.go
12
structs.go
|
@ -220,19 +220,9 @@ type User struct {
|
||||||
Username string `json:"username"`
|
Username string `json:"username"`
|
||||||
Avatar string `json:"Avatar"`
|
Avatar string `json:"Avatar"`
|
||||||
Verified bool `json:"verified"`
|
Verified bool `json:"verified"`
|
||||||
//Discriminator int `json:"discriminator,string"` // TODO: See below
|
Discriminator string `json:"discriminator"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Research issue.
|
|
||||||
// Discriminator sometimes comes as a string
|
|
||||||
// and sometimes it comes as a int. Weird.
|
|
||||||
// to avoid errors I've just commented it out
|
|
||||||
// but it doesn't seem to just kill the whole
|
|
||||||
// program. Heartbeat is taken on READY even
|
|
||||||
// with error and the system continues to read
|
|
||||||
// it just doesn't seem able to handle this one
|
|
||||||
// field correctly. Need to research this more.
|
|
||||||
|
|
||||||
// A Settings stores data for a specific users Discord client settings.
|
// A Settings stores data for a specific users Discord client settings.
|
||||||
type Settings struct {
|
type Settings struct {
|
||||||
RenderEmbeds bool `json:"render_embeds"`
|
RenderEmbeds bool `json:"render_embeds"`
|
||||||
|
|
Loading…
Reference in a new issue