Gykas
Gykas
DIAdiscord.js - Imagine a boo! 👻
Created by Gykas on 8/1/2024 in #djs-questions
Generating embeds but size exceed 6000
Hey, i've got an array of fields and i'm generating an array of embeds that i send like this :
const embeds = [];
while (fields.length)
embeds.push(
new EmbedBuilder()
.setColor(Colors.Blue.int)
.addFields(fields.splice(0, 20))
);

embeds[0]
.setTitle("Commande chargée")
.setThumbnail("https://img.icons8.com/fluency/48/cookie.png");

i.editReply({ embeds });
const embeds = [];
while (fields.length)
embeds.push(
new EmbedBuilder()
.setColor(Colors.Blue.int)
.addFields(fields.splice(0, 20))
);

embeds[0]
.setTitle("Commande chargée")
.setThumbnail("https://img.icons8.com/fluency/48/cookie.png");

i.editReply({ embeds });
but i've got this error embed size exceed 6000. thx for ur help !
6 replies
DIAdiscord.js - Imagine a boo! 👻
Created by Gykas on 7/17/2024 in #djs-questions
Modal collecting two responses
I'm coding a bot with discord.js and I would like to prevent my bot from collecting two responses to a modal because we have no way of knowing if the user has canceled his first response and therefore if he completes a second response, it will satisfy the filter of the two interactions and the response will be processed twice. To solve this I had thought of adding the interaction token in the filter to collect the unique response linked to the interaction. How to add the token in the filter?
41 replies
DIAdiscord.js - Imagine a boo! 👻
Created by Gykas on 7/10/2024 in #djs-questions
Create private threads in Forum
Hey i would like to know if there is a way to create private threads in forum channels. In fact, I have a forum channel and I would like to restrict the treads created to some people so that when you are a common member, you don’t see the thread created except if you are invited.
9 replies
DIAdiscord.js - Imagine a boo! 👻
Created by Gykas on 12/30/2023 in #djs-questions
What is this error linked to in the embed?
I've got this error and i don't know what it means...
4 replies