Skip to content

Commit e56f676

Browse files
authored
🎨 Allow passing inline to Message::fields() (Fixes #75) (#76)
1 parent c61ed8c commit e56f676

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/Discord/Message.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -564,10 +564,10 @@ public function authorIcon(?string $authorIcon): self
564564
/**
565565
* Set the message fields.
566566
*/
567-
public function fields(array $fields): self
567+
public function fields(array $fields, bool $inline = true): self
568568
{
569569
foreach ($fields as $key => $value) {
570-
$this->field($key, $value);
570+
$this->field($key, $value, $inline);
571571
}
572572

573573
return $this;

0 commit comments

Comments
 (0)