Added request for user list

This commit is contained in:
MichaelOultram 2015-08-12 21:59:15 +01:00
parent 4ae529de85
commit 945974670c

View file

@ -43,7 +43,8 @@ func (t TestSettings) testYoutubeSong() {
// if err := dummyClient.Connect(); err != nil { // if err := dummyClient.Connect(); err != nil {
// panic(err) // panic(err)
// } // }
dummyUser := dj.client.Users.Find("bottleotoast") dj.client.Request(gumble.Request.RequestUserList)
dummyUser := dj.client.Users.Find("BottleOToast")
if dummyUser == nil { if dummyUser == nil {
fmt.Printf("User does not exist, printing users\n") fmt.Printf("User does not exist, printing users\n")
for _, user := range dj.client.Users { for _, user := range dj.client.Users {