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. ///