diff --git a/docs/moderation_docs.md b/docs/moderation_docs.md index 86fce21..d08a13c 100644 --- a/docs/moderation_docs.md +++ b/docs/moderation_docs.md @@ -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) +```