From 78ab959ebba25c9be10d9aed721ce2235cdf8074 Mon Sep 17 00:00:00 2001 From: Cenngo Date: Mon, 20 Jun 2022 15:18:39 +0300 Subject: [PATCH] update method name and add inline docs --- .../Extensions/IDiscordInteractionExtensions.cs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/Discord.Net.Interactions/Extensions/IDiscordInteractionExtensions.cs b/src/Discord.Net.Interactions/Extensions/IDiscordInteractionExtensions.cs index 40393b6a1..d970b9930 100644 --- a/src/Discord.Net.Interactions/Extensions/IDiscordInteractionExtensions.cs +++ b/src/Discord.Net.Interactions/Extensions/IDiscordInteractionExtensions.cs @@ -22,7 +22,20 @@ namespace Discord.Interactions await SendModalResponseAsync(interaction, customId, modalInfo, options, modifyModal); } - public static async Task RespondWithModalSafelyAsync(this IDiscordInteraction interaction, string customId, InteractionService interactionService, + /// + /// Respond to an interaction with a . + /// + /// + /// This method overload uses the parameter to create a new + /// if there isn't a built one already in cache. + /// + /// Type of the implementation. + /// The interaction to respond to. + /// Interaction service instance that should be used to build s. + /// The request options for this request. + /// Delegate that can be used to modify the modal. + /// + public static async Task RespondWithModalAsync(this IDiscordInteraction interaction, string customId, InteractionService interactionService, RequestOptions options = null, Action modifyModal = null) where T : class, IModal {