Skip to content

Commit

Permalink
Update dsp (not naive this time)
Browse files Browse the repository at this point in the history
  • Loading branch information
Plerx2493 committed May 7, 2024
1 parent d71b535 commit 760719e
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,10 @@ internal static async Task OnAutocompleteError(SlashCommandsExtension sender, Au
await e.Context.Channel.SendMessageAsync($"OOPS your command just errored... \n {e.Exception.Message}");
await e.Context.Channel.SendMessageAsync(e.Exception.InnerException?.Message ?? "no inner exception");
string? reallyLongString = e.Exception.StackTrace;

InteractivityExtension interactivity = e.Context.Client.GetInteractivity();

if (reallyLongString != null)
{
IEnumerable<Page> pages = interactivity.GeneratePagesInEmbed(reallyLongString);
IEnumerable<Page> pages = InteractivityExtension.GeneratePagesInEmbed(reallyLongString);

await e.Context.Channel.SendPaginatedMessageAsync(e.Context.Member, pages, PaginationBehaviour.Ignore,
ButtonPaginationBehavior.DeleteButtons);
Expand Down

0 comments on commit 760719e

Please sign in to comment.