#Change response to non-ephemeral message

1 messages · Page 1 of 1 (latest)

queen crag
#

Is there a way to change the response to a non-ephemeral message?

await cpt.UpdateAsync(x =>
{
    x.Content = $"Your choice: {userOptId}\nBot's choice: {opts[botOptKey]}\nIt's a tie!";
    x.Components = null;
    x.Embed = null;
    x.Ephemeral = false;
});

I tried this but it doesn't work

valid flax
queen crag
#
Discord.Net.HttpException: The server responded with error 10015: Unknown Webhook
   at Discord.Net.Queue.RequestBucket.SendAsync(RestRequest request)
   at Discord.Net.Queue.RequestQueue.SendAsync(RestRequest request)
   at Discord.API.DiscordRestApiClient.SendInternalAsync(String method, String endpoint, RestRequest request)       
   at Discord.API.DiscordRestApiClient.SendJsonAsync[TResponse](String method, String endpoint, Object payload, BucketId bucketId, ClientBucketType clientBucket, RequestOptions options)
   at Discord.API.DiscordRestApiClient.CreateInteractionFollowupMessageAsync(CreateWebhookMessageParams args, String token, RequestOptions options)
   at Discord.Rest.InteractionHelper.SendFollowupAsync(BaseDiscordClient client, CreateWebhookMessageParams args, String token, IMessageChannel channel, RequestOptions options)
   at Discord.WebSocket.SocketMessageComponent.FollowupAsync(String text, Embed[] embeds, Boolean isTTS, Boolean ephemeral, AllowedMentions allowedMentions, MessageComponent components, Embed embed, RequestOptions options)
   at PierBot.Modules.ButtonsHandler.HandleRPSButtons(SocketMessageComponent cpt, String userOptId) in F:\Documents\csharp\PierBot\Modules\ButtonsHandler.cs:line 66
   at PierBot.Modules.ButtonsHandler.ButtonIdHandler(SocketMessageComponent cpt) in F:\Documents\csharp\PierBot\Modules\ButtonsHandler.cs:line 15
   at Discord.EventExtensions.InvokeAsync[T](AsyncEvent`1 eventHandler, T arg)
   at Discord.WebSocket.DiscordSocketClient.TimeoutWrap(String name, Func`1 action)
valid flax
#

Well you cannot change it to a none ephemeral message