Cannot post to specific channel chat

Asked Jan 18, 2021·2 replies·Last activity 5 years ago·Open in Discord ↗
Archived from the original community forum
Things may have changed since it was written. Still stuck? Ask the community on Discord.

Hello.

I am able to use https://api.nightbot.tv/1/channel/send to post messages to my own channel.

I am also a manager for channel "G." I see that whenever I create an application for my own channel, it appears in channel "G" and vice-versa (along with App Name, Redirect URIs, Client ID, etc.).

My issue: when I use https://api.nightbot.tv/1/channel/send to post, the messages appear in my own channel but not in G's. How can I specify the posts to appear in G's channel?

Thank you.

2 replies

You must follow the authorization flow as detailed here. You've already made an app, so step 1 is done. Now the owner of channel G must run the authorization URL in step 2; you can fill out the necessary query string parameters in the URL (in particular scope=channel_send) then send it to G to run. G will then be redirected to the specified redirect URL along with an authorization code, and assuming the redirect site handles step 4, you'll then have the access token needed to post in G's channel.

Thank you, @Deft Penguin ! I'll review your response in detail soon. I appreciate your prompt response.