#Can't seem to get SendMessageToChannel working

1 messages · Page 1 of 1 (latest)

tall cave
#

Everything regarding the Twitch intergration and pubsub seems to work great! My only issue is that i'm trying to respond to user commands or interactions via channel chat and i can't seem to get it working at all. twitch.Chat.SendMessageToChannel(com.Channel,com.Sender.DisplayName + " | Test!"); I'm using this in the OnChatCommandRecieved listner.

chilly temple
#

Hi! I could think of three possible issues:

  1. Your token does not have the chat:edit (I think that was it) scope

  2. com.Channel is spelled wrong (you should only use lowercase chars, this works 100%)

  3. Your bot is not joined to the channel (unlikely as you say it is a callback in OnChatCommandRecieved)
    Have you verified, that OnChatCommandRecieved gets called as expected? Debug.Log from it or sth like that

tall cave
#

The chat:edit was the issue. Thank you!