Esempio n. 1
0
 public static Task ModifyInteractionResponseAsync(this DiscordClient client, ulong appId, string interactionToken, InteractionResponseProperties changes) =>
 client.HttpClient.PatchAsync($"/webhooks/{appId}/{interactionToken}/messages/@original", changes);
Esempio n. 2
0
 public static Task RespondToInteractionAsync(this DiscordClient client, ulong interactionId, string interactionToken, InteractionCallbackType callbackType, InteractionResponseProperties properties = null) =>
 client.HttpClient.PostAsync($"/interactions/{interactionId}/{interactionToken}/callback", new InteractionResponse()
 {
     Type = callbackType, Data = properties
 });
Esempio n. 3
0
 public static void RespondToInteraction(this DiscordClient client, ulong interactionId, string interactionToken, InteractionCallbackType callbackType, InteractionResponseProperties properties = null) =>
 client.RespondToInteractionAsync(interactionId, interactionToken, callbackType, properties);