mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 17:28:27 -04: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.Run(async () =>
|
||||
{
|
||||
try
|
||||
{
|
||||
if (si is not SocketMessageComponent smc)
|
||||
return;
|
||||
@@ -263,6 +265,11 @@ public static class MessageChannelExtensions
|
||||
await smc.ModifyOriginalResponseAsync(x => x.Embed = toSend.Build());
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Log.Error(ex, "Error in pagination: {ErrorMessage}", ex.Message);
|
||||
}
|
||||
});
|
||||
|
||||
return Task.CompletedTask;
|
||||
|
Reference in New Issue
Block a user