mirror of
				https://gitlab.com/Kwoth/nadekobot.git
				synced 2025-11-03 16:24:27 -05:00 
			
		
		
		
	Added error logging to pagination as there seems to be an issue
This commit is contained in:
		@@ -227,6 +227,8 @@ public static class MessageChannelExtensions
 | 
				
			|||||||
        Task OnInteractionAsync(SocketInteraction si)
 | 
					        Task OnInteractionAsync(SocketInteraction si)
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            _ = Task.Run(async () =>
 | 
					            _ = Task.Run(async () =>
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                try
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
                    if (si is not SocketMessageComponent smc)
 | 
					                    if (si is not SocketMessageComponent smc)
 | 
				
			||||||
                        return;
 | 
					                        return;
 | 
				
			||||||
@@ -263,6 +265,11 @@ public static class MessageChannelExtensions
 | 
				
			|||||||
                            await smc.ModifyOriginalResponseAsync(x => x.Embed = toSend.Build());
 | 
					                            await smc.ModifyOriginalResponseAsync(x => x.Embed = toSend.Build());
 | 
				
			||||||
                        }
 | 
					                        }
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					                catch (Exception ex)
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
 | 
					                    Log.Error(ex, "Error in pagination: {ErrorMessage}", ex.Message);
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
            });
 | 
					            });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            return Task.CompletedTask;
 | 
					            return Task.CompletedTask;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user