#Discordapierror 50035

28 messages · Page 1 of 1 (latest)

quick mica
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

little folio
#

your .reply() has invalid components

plush kettle
little folio
#

and how are those components defined

plush kettle
#
        .addComponents(
            
            new ButtonBuilder()
                .setCustomId('health')
                .setLabel('Health')
                .setStyle (ButtonStyle.Secondary)
                .setEmoji(':Health:'),

            new ButtonBuilder()
            .    setCustomId('stamina')
                .setLabel('Stamina')
                .setStyle(ButtonStyle.Secondary)
                .setEmoji(':Melee:'),

            new ButtonBuilder()
                .setCustomId('melee')
                .setLabel('Melee')
                .setStyle(ButtonStyle.Secondary)
                .setEmoji('<:Stamina:1047587428006899803'),

            new ButtonBuilder()
                .setCustomId('continue')
                .setLabel('Continuar')
                .setStyle(ButtonStyle.Success)
                .setEmoji('⚔️'),

            new ButtonBuilder()
                .setCustomId('cancell')
                .setLabel('Cancelar')
                .setStyle(ButtonStyle.Danger)
                .setEmoji('✅')
        )```
#
        .setColor(0xf20505)
        .setTitle('\`${dinoname}\` Line')
        .setDescription('Selecione os status breedados de \`${dinoname}\`')```
#

got any ideia of what i did wrong?

little folio
#

an embed is not a component

#

you pass it though the embeds array

plush kettle
little folio
#

yes

plush kettle
#

thx

#

@little folio its asking me to define it

#

define the channel

#

how can i define it

little folio
#

You were using interaction.reply before

#

Why are you using channel.send now

plush kettle
#

how can i do it

little folio
#

Do what?

plush kettle
#

send the message in the interaction.reply

#

tought more about it

#

just removed the channel

#

but my row isnt sending

little folio
#

cause you removed the row from the options

plush kettle
#

what options?

#

its the same thing

little folio
#

message options

plush kettle
#

got any example of it ? im a dummie in coding at discordjs , srry for it