#Raw Data About Components

1 messages · Page 1 of 1 (latest)

lilac hinge
#
interaction.channel.send({ content: "hi", type: 1, components: [{ style: 2, label: "test", custom_id: "test"}] })```
#

Shouldn't it be inside components?

quaint pier
#

Uh

#

You got it wrong

lilac hinge
#

You showed it me like that, or yeah I got it wrong

quaint pier
#
interaction.channel.send({ content: "hi", components: [{type: 1, components: [{ style: 2, label: "test", custom_id: "test"}]}] })
lilac hinge
#

components inside components

quaint pier
#

Yep

lilac hinge
#

oh

#

You showed it inside curly brackets

#

without property, that confused me for a moment :D

quaint pier
#

I showed this lol l
[{type: 1, components: [{button json here}]}]

#

I assumed you knew where to put that

#

Lol

lilac hinge
#

lol

#

I got it wrong, thank you for your help Yasser.

quaint pier
#

👍

lilac hinge
#

@quaint pier, it says Found unknown component type: undefined

#

That's awkward.

quaint pier
#

Hmmm

#

unknown component type?

#

OHHHH

#
interaction.channel.send({ content: "hi", components: [{type: 1, components: [{ type: 2, style: 2, label: "test", custom_id: "test"}]}] })
#

Try that

lilac hinge
#

I just noticed that too xD

quaint pier
#

Yeah lol hahaha

lilac hinge
#

Now it is saying ActionRowBuilder is not a constructor xd

#

I'mma just stick with builders ig...