diff --git a/src/Discord/Helpers/CollectionTrait.php b/src/Discord/Helpers/CollectionTrait.php index ac20e9148..6fe542124 100644 --- a/src/Discord/Helpers/CollectionTrait.php +++ b/src/Discord/Helpers/CollectionTrait.php @@ -467,7 +467,11 @@ public function unique(int $flags = SORT_STRING) */ public function merge($collection): self { - $this->items = array_merge($this->items, $collection->toArray()); + $items = $collection instanceof CollectionInterface + ? $collection->toArray() + : $collection; + + $this->items = array_merge($this->items, $items); return $this; }