Skip to content

Commit 455df74

Browse files
committed
Fix Embed fields not having a discriminator
1 parent 9ac7371 commit 455df74

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Discord/Parts/Embed/Embed.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ protected function getAuthorAttribute(): Author
166166
*/
167167
protected function getFieldsAttribute(): ExCollectionInterface
168168
{
169-
$fields = Collection::for(Field::class, null);
169+
$fields = Collection::for(Field::class, 'name');
170170

171171
if (! array_key_exists('fields', $this->attributes)) {
172172
return $fields;

0 commit comments

Comments
 (0)