We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aaf3a32 commit 49ef2a1Copy full SHA for 49ef2a1
src/Discord/Builders/MessageBuilder.php
@@ -437,9 +437,11 @@ public function addComponent(Component $component): self
437
throw new \InvalidArgumentException('You can only add component objects to a message.');
438
}
439
440
+ /*
441
if (! in_array($component::USAGE, ['Message'])) {
442
throw new \InvalidArgumentException('Invalid component type for messages.');
443
444
+ */
445
446
if ($component instanceof Interactive) {
447
$component = ActionRow::new()->addComponent($component);
0 commit comments