Skip to content

Commit

Permalink
docs: Document GetModeratedChannels
Browse files Browse the repository at this point in the history
  • Loading branch information
dx9er committed Jun 25, 2024
1 parent 7ff91c8 commit 7916a0c
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions docs/moderation_docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -288,3 +288,29 @@ if err != nil {

fmt.Printf("%+v\n", resp)
```

## Get Moderated Channels

To use this function you need a user access token with the `user:read:moderated_channels` scope.
`UserID` is required and must match the user ID of the user access token.

This is an example of how to get channels the user has moderator privileges in.

```go
client, err := helix.NewClient(&helix.Options{
ClientID: "your-client-id",
UserAccessToken: "your-user-access-token",
})
if err != nil {
// handle error
}

resp, err := client.GetModeratedChannels(&helix.GetModeratedChannelsParams{
UserID: "154315414",
})
if err != nil {
// handle error
}

fmt.Printf("%+v\n", resp)
```

0 comments on commit 7916a0c

Please sign in to comment.