Skip to content

Commit 9ace1ed

Browse files
committed
fix build
1 parent f58a730 commit 9ace1ed

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

GameRemover/GameRemoverPlugin.cs

+4
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,12 @@ public Task OnLoaded()
3131
public string Name => nameof(GameRemover);
3232
public Version Version => Assembly.GetExecutingAssembly().GetName().Version ?? throw new InvalidOperationException(nameof(Version));
3333

34+
[CLSCompliant(false)]
3435
public Task<string?> OnBotCommand(Bot bot, EAccess access, string message, string[] args, ulong steamID = 0)
3536
{
37+
ArgumentNullException.ThrowIfNull(bot);
38+
ArgumentNullException.ThrowIfNull(args);
39+
3640
return args[0].ToUpperInvariant() switch {
3741
"DELETEGAME" when args.Length > 2 => ResponseDeleteGame(steamID, access, args[1], args[2]),
3842
"DELETEGAME" when args.Length > 1 => ResponseDeleteGame(bot, access, args[1]),

0 commit comments

Comments
 (0)