From 814cd316331fb2d7c42664ab8813b76c01016f5b Mon Sep 17 00:00:00 2001 From: Gradyn Wursten Date: Tue, 20 Dec 2022 11:05:55 -0700 Subject: [PATCH] add docs --- .../InteractionService.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/Discord.Net.Interactions/InteractionService.cs b/src/Discord.Net.Interactions/InteractionService.cs index df4c27aea..6828daeb2 100644 --- a/src/Discord.Net.Interactions/InteractionService.cs +++ b/src/Discord.Net.Interactions/InteractionService.cs @@ -684,6 +684,14 @@ namespace Discord.Interactions } } + /// + /// Unregister Application Commands from modules provided in from a guild. + /// + /// The target guild. + /// Modules to be deregistered from Discord. + /// + /// A task representing the command de-registration process. The task result contains the active application commands of the target guild. + /// public async Task> RemoveModulesFromGuildAsync(IGuild guild, params ModuleInfo[] modules) { if (guild is null) @@ -692,6 +700,14 @@ namespace Discord.Interactions return await RemoveModulesFromGuildAsync(guild.Id, modules).ConfigureAwait(false); } + /// + /// Unregister Application Commands from modules provided in from a guild. + /// + /// The target guild ID. + /// Modules to be deregistered from Discord. + /// + /// A task representing the command de-registration process. The task result contains the active application commands of the target guild. + /// public async Task> RemoveModulesFromGuildAsync(ulong guildId, params ModuleInfo[] modules) { EnsureClientReady();