From 77784f001faa58a90edf34edc195d6942ba9b451 Mon Sep 17 00:00:00 2001 From: Armano den Boef Date: Tue, 29 Mar 2022 23:12:44 +0200 Subject: [PATCH] Put internal above private --- src/Discord.Net.Interactions/InteractionService.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Discord.Net.Interactions/InteractionService.cs b/src/Discord.Net.Interactions/InteractionService.cs index 23bef81a4..2a05a42f8 100644 --- a/src/Discord.Net.Interactions/InteractionService.cs +++ b/src/Discord.Net.Interactions/InteractionService.cs @@ -22,7 +22,13 @@ namespace Discord.Interactions /// Occurs when a Slash Command related information is recieved. /// public event Func Log { add { _logEvent.Add(value); } remove { _logEvent.Remove(value); } } - internal readonly AsyncEvent> _logEvent = new (); + internal readonly AsyncEvent> _logEvent = new(); + + /// + /// Occurs when a AutocompleteHandler is executed. + /// + public event Func AutocompleteHandlerExecuted { add { _autocompleteHandlerExecutedEvent.Add(value); } remove { _autocompleteHandlerExecutedEvent.Remove(value); } } + internal readonly AsyncEvent> _autocompleteHandlerExecutedEvent = new(); /// /// Occurs when any type of interaction is executed. @@ -54,12 +60,6 @@ namespace Discord.Interactions public event Func AutocompleteCommandExecuted { add { _autocompleteCommandExecutedEvent.Add(value); } remove { _autocompleteCommandExecutedEvent.Remove(value); } } private readonly AsyncEvent> _autocompleteCommandExecutedEvent = new(); - /// - /// Occurs when a AutocompleteHandler is executed. - /// - public event Func AutocompleteHandlerExecuted { add { _autocompleteHandlerExecutedEvent.Add(value); } remove { _autocompleteHandlerExecutedEvent.Remove(value); } } - private readonly AsyncEvent> _autocompleteHandlerExecutedEvent = new(); - /// /// Occurs when a Modal command is executed. ///