Are Embed Objects addFields 1024 characters total or per field?

I have this embed:
const boosters = new Discord.MessageEmbed()
.setColor('AQUA')
.setTitle('Would you like to become a server booster?')
.setDescription(`Thanks for wanting to become a server booster. We have tons of benefits which you receive just by boosting our server.`)
.addFields(
{
name: 'Private Personal Coding Help Channel',
value: 'We have several members of our server who have offered to provide assistance to our Server Boosters in a private channel. Each booster\'s channel is private and only they and our helpers can access it. You can ping @dudethatserin and the helpers as much as you want and we will be available as long as we are awake.'
},
{
name: 'Free Discord Bot or (small) website hosting.',
value: '@dudethatserin owns a VPS with [fantastic uptime](https://stats.uptimerobot.com/0pj23Sk01K). The Discord Bot hosting means that you can keep your bot online even when your PC is not on. The website hosting is for websites with 2-3 pages, like a portfolio or blog. If you want to know more about what this entails, feel free to reach out via <@575252669443211264> and we can go over it with you.'
},
{
name: 'Advertising for your project or discord server in <#773592987141668885> for as long as you boost the server.',
value: 'As long as you are boosting, you can advertise 1 project or 1 server in the channel.'
},
{
name: 'If you decide to boost 2x, @dudethatserin will create you a discord bot or small website from scratch.',
value: '@dudethatserin will host it on her VPS (or if you have hosting we can use that). She will make it and it will be top priority for her until completed.'
},
{
name: 'If you decide to boost 3x or more, @dudethatserin can make a bigger discord bot or website from scratch for you.',
value: '@dudethatserin will also provide a free TLD name (.com, .org, .etc) as well as hosting for that and whatever projects you have while you are boosting the server.'
},
{
name: 'There are more features to come...',
value: 'We are always thinking over what features we want to add for Server Boosters. If you have any suggestions, run the \`++suggest\` command and we will think over your suggestion.'
}
)
.timestamp()
.setFooter({text: 'Thanks for your consideration for boosting the server! Happy Coding!'});
const boosters = new Discord.MessageEmbed()
.setColor('AQUA')
.setTitle('Would you like to become a server booster?')
.setDescription(`Thanks for wanting to become a server booster. We have tons of benefits which you receive just by boosting our server.`)
.addFields(
{
name: 'Private Personal Coding Help Channel',
value: 'We have several members of our server who have offered to provide assistance to our Server Boosters in a private channel. Each booster\'s channel is private and only they and our helpers can access it. You can ping @dudethatserin and the helpers as much as you want and we will be available as long as we are awake.'
},
{
name: 'Free Discord Bot or (small) website hosting.',
value: '@dudethatserin owns a VPS with [fantastic uptime](https://stats.uptimerobot.com/0pj23Sk01K). The Discord Bot hosting means that you can keep your bot online even when your PC is not on. The website hosting is for websites with 2-3 pages, like a portfolio or blog. If you want to know more about what this entails, feel free to reach out via <@575252669443211264> and we can go over it with you.'
},
{
name: 'Advertising for your project or discord server in <#773592987141668885> for as long as you boost the server.',
value: 'As long as you are boosting, you can advertise 1 project or 1 server in the channel.'
},
{
name: 'If you decide to boost 2x, @dudethatserin will create you a discord bot or small website from scratch.',
value: '@dudethatserin will host it on her VPS (or if you have hosting we can use that). She will make it and it will be top priority for her until completed.'
},
{
name: 'If you decide to boost 3x or more, @dudethatserin can make a bigger discord bot or website from scratch for you.',
value: '@dudethatserin will also provide a free TLD name (.com, .org, .etc) as well as hosting for that and whatever projects you have while you are boosting the server.'
},
{
name: 'There are more features to come...',
value: 'We are always thinking over what features we want to add for Server Boosters. If you have any suggestions, run the \`++suggest\` command and we will think over your suggestion.'
}
)
.timestamp()
.setFooter({text: 'Thanks for your consideration for boosting the server! Happy Coding!'});
Giving me this error:
TypeError: (intermediate value).setColor(...).setTitle(...).setDescription(...).addFields(...).timestamp is not a function
at Object.execute (/root/bot/commands/erin/boosters.js:39:10)
at Object.execute (/root/bot/events/messageCreate.js:109:21)
at Client.<anonymous> (/root/bot/index.js:113:49)
at Client.emit (node:events:527:28)
at MessageCreateAction.handle (/root/bot/node_modules/discord.js/src/client/actions/MessageCreate.js:26:14)
at Object.module.exports [as MESSAGE_CREATE] (/root/bot/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (/root/bot/node_modules/discord.js/src/client/websocket/WebSocketManager.js:346:31)
at WebSocketShard.onPacket (/root/bot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:478:22)
at WebSocketShard.onMessage (/root/bot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:317:10)
at WebSocket.onMessage (/root/bot/node_modules/ws/lib/event-target.js:199:18)
/root/bot/node_modules/discord.js/src/rest/RequestHandler.js:350
throw new DiscordAPIError(data, res.status, request);
^

DiscordAPIError: Invalid Form Body
embeds[0].fields[2].value: Must be 1024 or fewer in length.
TypeError: (intermediate value).setColor(...).setTitle(...).setDescription(...).addFields(...).timestamp is not a function
at Object.execute (/root/bot/commands/erin/boosters.js:39:10)
at Object.execute (/root/bot/events/messageCreate.js:109:21)
at Client.<anonymous> (/root/bot/index.js:113:49)
at Client.emit (node:events:527:28)
at MessageCreateAction.handle (/root/bot/node_modules/discord.js/src/client/actions/MessageCreate.js:26:14)
at Object.module.exports [as MESSAGE_CREATE] (/root/bot/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (/root/bot/node_modules/discord.js/src/client/websocket/WebSocketManager.js:346:31)
at WebSocketShard.onPacket (/root/bot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:478:22)
at WebSocketShard.onMessage (/root/bot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:317:10)
at WebSocket.onMessage (/root/bot/node_modules/ws/lib/event-target.js:199:18)
/root/bot/node_modules/discord.js/src/rest/RequestHandler.js:350
throw new DiscordAPIError(data, res.status, request);
^

DiscordAPIError: Invalid Form Body
embeds[0].fields[2].value: Must be 1024 or fewer in length.
5 Replies
Erin
Erin2y ago
Second field is only 401 characters but all the fields altogether are 2147 characters including the name and value sections.
Almeida
Almeida2y ago
the 3rd field value is the one with more than 1024 characters
Erin
Erin2y ago
That one is even shorter
Almeida
Almeida2y ago
and its .setTimestamp() discord disagrees are you sure thats the embed that is causing the error?
Erin
Erin2y ago
OH! you are right, wrong embed.