コード例 #1
0
 public void Respond(InteractionCallbackType callbackType, InteractionResponseProperties properties      = null) => RespondAsync(callbackType, properties).GetAwaiter().GetResult();
コード例 #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
 });
コード例 #3
0
 public Task RespondAsync(InteractionCallbackType callbackType, InteractionResponseProperties properties = null) => Client.RespondToInteractionAsync(Id, Token, callbackType, properties);
コード例 #4
0
 public static void RespondToInteraction(this DiscordClient client, ulong interactionId, string interactionToken, InteractionCallbackType callbackType, InteractionResponseProperties properties = null) =>
 client.RespondToInteractionAsync(interactionId, interactionToken, callbackType, properties);