Skip to content

Commit 49ef2a1

Browse files
committed
Update MessageBuilder.php
1 parent aaf3a32 commit 49ef2a1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Discord/Builders/MessageBuilder.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,9 +437,11 @@ public function addComponent(Component $component): self
437437
throw new \InvalidArgumentException('You can only add component objects to a message.');
438438
}
439439

440+
/*
440441
if (! in_array($component::USAGE, ['Message'])) {
441442
throw new \InvalidArgumentException('Invalid component type for messages.');
442443
}
444+
*/
443445

444446
if ($component instanceof Interactive) {
445447
$component = ActionRow::new()->addComponent($component);

0 commit comments

Comments
 (0)