Fixes for compatibility with Go 1.3, closes #56.

This commit is contained in:
Bruce Marriner 2016-01-07 13:28:33 -06:00
parent d737b91b77
commit d6314c034e
2 changed files with 6 additions and 6 deletions

View file

@ -156,7 +156,7 @@ func (s *Session) UserUpdate(userID, email, password, username, avatar, newPassw
Password string `json:"password"`
Username string `json:"username"`
Avatar string `json:"avatar,omitempty"`
NewPassword json.Token `json:"new_password,omitempty"`
NewPassword string `json:"new_password,omitempty"`
}{email, password, username, avatar, newPassword}
body, err := s.Request("PATCH", USER(userID), data)

View file

@ -299,7 +299,7 @@ func (s *Session) VoiceUDPKeepalive(i time.Duration) {
// into it. Then send that over the UDP connection to Discord
ticker := time.NewTicker(i * time.Millisecond)
for range ticker.C {
for _ = range ticker.C {
sb := make([]byte, 8)
sb[0] = 0x80
sb[1] = 0xc9