We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4db9968 + 089d7e2 commit b4b5e54Copy full SHA for b4b5e54
Unity-Twitch-Chat/Assets/Package/Runtime/IRC.cs
@@ -276,5 +276,19 @@ private void BlockingDisconnect()
276
if (showIRCDebug)
277
Debug.Log($"{Tags.alert} Disconnected from Twitch IRC");
278
}
279
+
280
+ /// <summary>
281
+ /// Sends a chat message to the channel
282
+ /// </summary>
283
+ /// <param name="message">The message to send</param>
284
+ public void SendChatMessage(string message)
285
+ {
286
+ if (useAnonymousLogin)
287
288
+ Debug.LogWarning("Chat messages cannot be sent with anonymous login");
289
+ return;
290
+ }
291
+ connection.SendChatMessage(message);
292
293
294
0 commit comments