Added PrivateChannels function example
This commit is contained in:
parent
782fbe2bc9
commit
9abd4e829a
1 changed files with 5 additions and 0 deletions
|
@ -41,6 +41,11 @@ func main() {
|
|||
user, err := discord.Users(&session, "@me")
|
||||
fmt.Println(user)
|
||||
|
||||
// Use the PrivateChannels function to get a list of PrivateChannels
|
||||
// for a given user.
|
||||
private, err := discord.PrivateChannels(&session, "@me")
|
||||
fmt.Println(private)
|
||||
|
||||
// Use the Servers function to pull all available servers for a given user
|
||||
// This returns a Server structure
|
||||
servers, err := discord.Servers(&session, "@me")
|
||||
|
|
Loading…
Reference in a new issue