From 7493159c1197896ec44fa95977762935a49aa39a Mon Sep 17 00:00:00 2001 From: Armano den Boef Date: Thu, 31 Mar 2022 12:46:55 +0200 Subject: [PATCH] Revert "Put internal above private" This reverts commit 77784f001faa58a90edf34edc195d6942ba9b451. --- 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 2a05a42f8..23bef81a4 100644 --- a/src/Discord.Net.Interactions/InteractionService.cs +++ b/src/Discord.Net.Interactions/InteractionService.cs @@ -22,13 +22,7 @@ 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(); - - /// - /// Occurs when a AutocompleteHandler is executed. - /// - public event Func AutocompleteHandlerExecuted { add { _autocompleteHandlerExecutedEvent.Add(value); } remove { _autocompleteHandlerExecutedEvent.Remove(value); } } - internal readonly AsyncEvent> _autocompleteHandlerExecutedEvent = new(); + internal readonly AsyncEvent> _logEvent = new (); /// /// Occurs when any type of interaction is executed. @@ -60,6 +54,12 @@ 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. ///