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() {
300
300
client . OnMessageReceived += TwitchChatClient_OnMessageReceived ;
301
301
client . OnUserBanned += TwitchChatClient_OnUserBanned ;
302
302
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
+ } ;
303
318
}
304
319
305
320
try {
You can’t perform that action at this time.
0 commit comments