mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 18:13:29 +01:00
feat(MessageEmbed): add spliceField method (#2857)
* Add spliceField and refactor to prevent code dupe * String() was for a falsy check, fixed * requested: remove embed field count checks
This commit is contained in:
@@ -29,7 +29,6 @@ const Messages = {
|
||||
COLOR_RANGE: 'Color must be within the range 0 - 16777215 (0xFFFFFF).',
|
||||
COLOR_CONVERT: 'Unable to convert color to a number.',
|
||||
|
||||
EMBED_FIELD_COUNT: 'MessageEmbeds may not exceed 25 fields.',
|
||||
EMBED_FIELD_NAME: 'MessageEmbed field names may not be empty.',
|
||||
EMBED_FIELD_VALUE: 'MessageEmbed field values may not be empty.',
|
||||
|
||||
|
||||
Reference in New Issue
Block a user