I am making a role list command but turns out I have too many roles. Anyway to split the message into more. The roles are stored in an array. Btw I only want roles starting with A.
const roles = message.guild.roles.cache.filter(c => c.name.startsWith('A'))
Here is the error in console
Invalid Form Body content: Must be 2000 or fewer in length.
module.exports = {
name: 'rolelist',
description: 'Sends A List Of Roles Availible In The Server',
execute(message, args, client) {
if (!message.content.startsWith(prefix) || message.author.bot) return;
const roles = message.guild.roles.cache.filter(c => c.name.startsWith('A'))
if (colors.size < 1) {
return message.channel.send('There are no roles starting with the letter A');
}
message.channel.send(roles.array().join(` \n`), {split:true,})
},
};