Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ClearComponents() sometimes produces an empty message #527

Open
sentry-io bot opened this issue Jul 29, 2024 · 0 comments
Open

ClearComponents() sometimes produces an empty message #527

sentry-io bot opened this issue Jul 29, 2024 · 0 comments
Assignees
Labels
bug Something isn't working v10 Targets Discord API v10

Comments

@sentry-io
Copy link

sentry-io bot commented Jul 29, 2024

Sentry Issue: DISCATSHARP-297

DisCatSharp.Exceptions.BadRequestException: Bad request: BadRequest
  File "DiscordApiClient.cs", line 3254, in async Task<DiscordMessage> DiscordApiClient.EditMessageAsync(ulong channelId, ulong messageId, Optional<string> content, Optional<IEnumerable<DiscordEmbed>> embeds, Optional<IEnumerable<IMention>> mentions, IReadOnlyList<DiscordActionRowComponent> compo...
    var res = await this.DoRequestAsync(this.Discord, bucket, url, RestRequestMethod.PATCH, route, payload: DiscordJson.SerializeObject(pld)) {snip}
  File "DiscordMessage.cs", line 711, in async Task<DiscordMessage> DiscordMessage.ModifyAsync(Action<DiscordMessageBuilder> action)
    return await this.Discord.ApiClient.EditMessageAsync(this.ChannelId, this.Id, builder.Content, Optional.Some(builder.Embeds.AsEnumerable() {snip}
  File "Economy\Events\CollectEvent.cs", line 69, in async Task CollectEvent.Collect(DiscordClient cl, ComponentInteractionCreateEventArgs e)

System.AggregateException: A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread.
@sentry-io sentry-io bot added bug Something isn't working v10 Targets Discord API v10 labels Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v10 Targets Discord API v10
Development

No branches or pull requests

1 participant