File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
src/Nullinside.Api.Common/Twitch Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -300,6 +300,21 @@ private async Task<bool> Connect() {
300300 client . OnMessageReceived += TwitchChatClient_OnMessageReceived ;
301301 client . OnUserBanned += TwitchChatClient_OnUserBanned ;
302302 client . OnRaidNotification += TwitchChatClient_OnRaidNotification ;
303+ client . OnDisconnected += ( sender , args ) => {
304+ LOG . Error ( "Twitch Client Disconnected" ) ;
305+ } ;
306+ client . OnConnectionError += ( sender , args ) => {
307+ LOG . Error ( $ "Twitch Client Connection Error: { args . Error . Message } ") ;
308+ } ;
309+ client . OnError += ( sender , args ) => {
310+ LOG . Error ( $ "Twitch Client Error: { args . Exception . Message } ") ;
311+ } ;
312+ client . OnIncorrectLogin += ( sender , args ) => {
313+ LOG . Error ( $ "Twitch Client Incorrect Login: { args . Exception . Message } ") ;
314+ } ;
315+ client . OnNoPermissionError += ( sender , args ) => {
316+ LOG . Error ( "Twitch Client No Permission Error" ) ;
317+ } ;
303318 }
304319
305320 try {
You can’t perform that action at this time.
0 commit comments