public static Task <MessageJsonModel> ModifyFollowupInteractionResponseAsync(this IRestApiClient client,
                                                                                     Snowflake applicationId, string interactionToken, Snowflake messageId, ModifyWebhookMessageJsonRestRequestContent content,
                                                                                     IRestRequestOptions options = null, CancellationToken cancellationToken = default)
        {
            var route = Format(Route.Interactions.ModifyFollowupResponse, applicationId, interactionToken, messageId);

            return(client.ExecuteAsync <MessageJsonModel>(route, content, options, cancellationToken));
        }
        public static Task <MessageJsonModel> ModifyWebhookMessageAsync(this IRestApiClient client, Snowflake webhookId, string token, Snowflake messageId, ModifyWebhookMessageJsonRestRequestContent content, IRestRequestOptions options = null)
        {
            var route = Format(Route.Webhook.ModifyWebhookMessage, webhookId, token, messageId);

            return(client.ExecuteAsync <MessageJsonModel>(route, content, options));
        }
Ejemplo n.º 3
0
        public static Task <MessageJsonModel> ModifyInitialInteractionResponseAsync(this IRestApiClient client, Snowflake applicationId, string interactionToken, ModifyWebhookMessageJsonRestRequestContent content, IRestRequestOptions options = null)
        {
            var route = Format(Route.Interactions.ModifyInitialResponse, applicationId, interactionToken);

            return(client.ExecuteAsync <MessageJsonModel>(route, content, options));
        }