Skip to content

Commit

Permalink
πŸ“ Update quick docs
Browse files Browse the repository at this point in the history
  • Loading branch information
barbarbar338 committed Jul 23, 2021
1 parent 1246d8b commit f125510
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,9 @@ import (
)

func main() {
// User IDs here πŸ‘‡
ws := lanyard.ListenMultipleUsers([]string{"866849747603816468", "331846231514939392"}, func(data []*lanyard.LanyardData) {
// Loop through users
for _, user := range data {
fmt.Println(user.DiscordStatus)
}
// User IDs here πŸ‘‡
ws := lanyard.ListenMultipleUsers([]string{"866849747603816468", "331846231514939392"}, func(data *lanyard.LanyardData) {
fmt.Println(data.DiscordStatus)
})

sc := make(chan os.Signal, 1)
Expand All @@ -112,7 +109,7 @@ func main() {

fmt.Println("Closing client.")

// Destroy WS Bbfore exit
// Destroy WS before exit
ws.Destroy()
}

Expand Down

0 comments on commit f125510

Please sign in to comment.