Browse Source

Put internal above private

pull/2213/head
Armano den Boef 3 years ago
parent
commit
77784f001f
1 changed files with 7 additions and 7 deletions
  1. +7
    -7
      src/Discord.Net.Interactions/InteractionService.cs

+ 7
- 7
src/Discord.Net.Interactions/InteractionService.cs View File

@@ -22,7 +22,13 @@ namespace Discord.Interactions
/// Occurs when a Slash Command related information is recieved. /// Occurs when a Slash Command related information is recieved.
/// </summary> /// </summary>
public event Func<LogMessage, Task> Log { add { _logEvent.Add(value); } remove { _logEvent.Remove(value); } } public event Func<LogMessage, Task> Log { add { _logEvent.Add(value); } remove { _logEvent.Remove(value); } }
internal readonly AsyncEvent<Func<LogMessage, Task>> _logEvent = new ();
internal readonly AsyncEvent<Func<LogMessage, Task>> _logEvent = new();

/// <summary>
/// Occurs when a AutocompleteHandler is executed.
/// </summary>
public event Func<IAutocompleteHandler, IInteractionContext, IResult, Task> AutocompleteHandlerExecuted { add { _autocompleteHandlerExecutedEvent.Add(value); } remove { _autocompleteHandlerExecutedEvent.Remove(value); } }
internal readonly AsyncEvent<Func<IAutocompleteHandler, IInteractionContext, IResult, Task>> _autocompleteHandlerExecutedEvent = new();


/// <summary> /// <summary>
/// Occurs when any type of interaction is executed. /// Occurs when any type of interaction is executed.
@@ -54,12 +60,6 @@ namespace Discord.Interactions
public event Func<AutocompleteCommandInfo, IInteractionContext, IResult, Task> AutocompleteCommandExecuted { add { _autocompleteCommandExecutedEvent.Add(value); } remove { _autocompleteCommandExecutedEvent.Remove(value); } } public event Func<AutocompleteCommandInfo, IInteractionContext, IResult, Task> AutocompleteCommandExecuted { add { _autocompleteCommandExecutedEvent.Add(value); } remove { _autocompleteCommandExecutedEvent.Remove(value); } }
private readonly AsyncEvent<Func<AutocompleteCommandInfo, IInteractionContext, IResult, Task>> _autocompleteCommandExecutedEvent = new(); private readonly AsyncEvent<Func<AutocompleteCommandInfo, IInteractionContext, IResult, Task>> _autocompleteCommandExecutedEvent = new();


/// <summary>
/// Occurs when a AutocompleteHandler is executed.
/// </summary>
public event Func<IAutocompleteHandler, IInteractionContext, IResult, Task> AutocompleteHandlerExecuted { add { _autocompleteHandlerExecutedEvent.Add(value); } remove { _autocompleteHandlerExecutedEvent.Remove(value); } }
private readonly AsyncEvent<Func<IAutocompleteHandler, IInteractionContext, IResult, Task>> _autocompleteHandlerExecutedEvent = new();

/// <summary> /// <summary>
/// Occurs when a Modal command is executed. /// Occurs when a Modal command is executed.
/// </summary> /// </summary>


Loading…
Cancel
Save