Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
ezhevita committed Apr 26, 2022
1 parent f58a730 commit 9ace1ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions GameRemover/GameRemoverPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,12 @@ public Task OnLoaded()
public string Name => nameof(GameRemover);
public Version Version => Assembly.GetExecutingAssembly().GetName().Version ?? throw new InvalidOperationException(nameof(Version));

[CLSCompliant(false)]
public Task<string?> OnBotCommand(Bot bot, EAccess access, string message, string[] args, ulong steamID = 0)
{
ArgumentNullException.ThrowIfNull(bot);
ArgumentNullException.ThrowIfNull(args);

return args[0].ToUpperInvariant() switch {
"DELETEGAME" when args.Length > 2 => ResponseDeleteGame(steamID, access, args[1], args[2]),
"DELETEGAME" when args.Length > 1 => ResponseDeleteGame(bot, access, args[1]),
Expand Down

0 comments on commit 9ace1ed

Please sign in to comment.