Skip to content

Commit

Permalink
Should fix #251
Browse files Browse the repository at this point in the history
  • Loading branch information
TheVeryStarlk committed Jan 21, 2024
1 parent e3df216 commit e08e0ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Obsidian/Commands/Framework/Entities/Command.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,9 @@ public async Task ExecuteAsync(CommandContext context, string[] args)
{
// Current param and arg
var paraminfo = methodparams[i];
var arg = args[i];

var arg = args.Length > 0 ? args[i] : string.Empty;

// This can only be true if we get a [Remaining] arg. Sets arg to remaining text.
if (args.Length > methodparams.Length && i == methodparams.Length - 1)
{
Expand Down

0 comments on commit e08e0ea

Please sign in to comment.