Skip to content

Commit

Permalink
Fix DeepSource Issue
Browse files Browse the repository at this point in the history
Fix "Exception thrown is generic CS-R1015" since I forgot about it whoops
Also remove the invalid return explanation for InitAsync()
  • Loading branch information
HEJOK254 committed Jun 18, 2024
1 parent 90b6989 commit c71dadc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Commands/InteractionServiceHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ public class InteractionServiceHandler
/// <summary>
/// Initialize the InteractionService
/// </summary>
/// <returns>True if success, false if failure</returns>
public static async Task InitAsync()
{
try
Expand All @@ -36,7 +35,7 @@ public static async Task RegisterModulesAsync()
if (_interactionService == null)
{
await Program.LogAsync("InteractionServiceManager.RegisterModulesAsync()", "InteractionService not initialized yet", LogSeverity.Error);
throw new Exception("InteractionService not initialized while trying to register commands");
throw new InvalidOperationException("InteractionService not initialized while trying to register commands");
}

try
Expand Down

0 comments on commit c71dadc

Please sign in to comment.