Closed 1PV1 closed 1 year ago
Environment
Describe the bug Embeds can't have 2 fields with the same name because fields in an embed is a collection, we should be able to create multiple fields with the same name (\u{200b} for example). A good solution would be to make fields an array.
fields
\u{200b}
To Reproduce Steps to reproduce the behavior:
// Has one field print_r((new Embed($discord))->setColor(0xffffff)->addField(...[[ "name" => "\u{200b}", 'value' => "\u{200b}", "inline" => false ], [ "name" => "\u{200b}", 'value' => "\u{200b}", "inline" => false ]])); // Has two fields print_r((new Embed($discord))->setColor(0xffffff)->addField(...[[ "name" => "\u{200b}", 'value' => "\u{200b}", "inline" => false ], [ "name" => "test", 'value' => "\u{200b}", "inline" => false ]]));
This limit is on the discord side, we do not check for duplicate names. Code reference
actually looking at this now..
Thanks for reporting, should be fixed in dev-master#9fab769
dev-master#9fab769
Environment
Describe the bug Embeds can't have 2 fields with the same name because
fields
in an embed is a collection, we should be able to create multiple fields with the same name (\u{200b}
for example). A good solution would be to makefields
an array.To Reproduce Steps to reproduce the behavior: