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 e0f28b0 commit 2e44a45Copy full SHA for 2e44a45
lib/src/api/builders/embed/embed_builder.dart
@@ -251,7 +251,13 @@ class EmbedBuilder {
251
embed.addField(name: 'Features', value: preview.features.map((feature) => '• $feature').join('\n'), inline: true);
252
253
if (preview.stickers.isNotEmpty || preview.emojis.isNotEmpty) {
254
- embed.addField(name: 'Emojis', value: preview.emojis.values.map((emoji) => emoji).join(' '), inline: true);
+ List<Emoji> emojis = preview.emojis.values.toList();
255
+
256
+ if(emojis.length > 25) {
257
+ emojis = emojis.sublist(0, 25);
258
+ }
259
260
+ embed.addField(name: 'Emojis', value: emojis.map((emoji) => emoji).join(' ') + "...", inline: true);
261
}
262
263
embed.addField(name: '\u200B', value: '\u200B');
0 commit comments