|
@@ -384,7 +384,7 @@ func (s *Session) UpdateListeningStatus(name string) (err error) {
|
|
// UpdateStatusComplex allows for sending the raw status update data untouched by discordgo.
|
|
// UpdateStatusComplex allows for sending the raw status update data untouched by discordgo.
|
|
func (s *Session) UpdateStatusComplex(usd UpdateStatusData) (err error) {
|
|
func (s *Session) UpdateStatusComplex(usd UpdateStatusData) (err error) {
|
|
// The comment does say "untouched by discordgo", but we might need to lie a bit here.
|
|
// The comment does say "untouched by discordgo", but we might need to lie a bit here.
|
|
- // The Discord documentation lists `activites` as being nullable, but in practice this
|
|
|
|
|
|
+ // The Discord documentation lists `activities` as being nullable, but in practice this
|
|
// doesn't seem to be the case. I had filed an issue about this at
|
|
// doesn't seem to be the case. I had filed an issue about this at
|
|
// https://github.com/discord/discord-api-docs/issues/2559, but as of writing this
|
|
// https://github.com/discord/discord-api-docs/issues/2559, but as of writing this
|
|
// haven't had any movement on it, so at this point I'm assuming this is an error,
|
|
// haven't had any movement on it, so at this point I'm assuming this is an error,
|
|
@@ -766,13 +766,13 @@ func (s *Session) identify() error {
|
|
s.log(LogDebug, "called")
|
|
s.log(LogDebug, "called")
|
|
|
|
|
|
// TODO: This is a temporary block of code to help
|
|
// TODO: This is a temporary block of code to help
|
|
- // maintain backwards compatability
|
|
|
|
|
|
+ // maintain backwards compatibility
|
|
if s.Compress == false {
|
|
if s.Compress == false {
|
|
s.Identify.Compress = false
|
|
s.Identify.Compress = false
|
|
}
|
|
}
|
|
|
|
|
|
// TODO: This is a temporary block of code to help
|
|
// TODO: This is a temporary block of code to help
|
|
- // maintain backwards compatability
|
|
|
|
|
|
+ // maintain backwards compatibility
|
|
if s.Token != "" && s.Identify.Token == "" {
|
|
if s.Token != "" && s.Identify.Token == "" {
|
|
s.Identify.Token = s.Token
|
|
s.Identify.Token = s.Token
|
|
}
|
|
}
|