Skip to content

Commit

Permalink
Replace ArrayAccess in CommandBuilder's addOption
Browse files Browse the repository at this point in the history
  • Loading branch information
valzargaming committed Jan 21, 2025
1 parent f7f282f commit 2e8f09b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Discord/Builders/CommandAttributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ public function addOption(Option $option): self

$this->options ??= Collection::for(Option::class, 'name');

$this->options[] = $option;
$this->options->push($option);

return $this;
}
Expand Down

0 comments on commit 2e8f09b

Please sign in to comment.