help compenentv2
My command does not display the user's avatar when I use his ID and I cannot find the problem.
18 Replies
When I do -avatar id it displays the author's avatar
If you aren't getting any errors, try to place
console.log checkpoints throughout your code to find out where execution stops.
- Once you do, log relevant values and if-conditions
- More sophisticated debugging methods are breakpoints and runtime inspections: learn moreit doesn't stop there is no error but it doesn't work when I use the id
ok wait
this is my terminal
It's my old one because I had gone to python
The order of function parameters must match between definition and function call.
- mismatch! you pass an interaction where the client is expected
- mismatch! you pass the client where an interaction is expected
I don't understand
this
I succeeded, thank you
but I can't put a thumbnail in the container
@Qjuh
Thumbnails can only be added as an accessory to a section component. You can then add a section component to a container
I can't🥲
But you can. It's literally in the Discord documentation. See their example
I know but I can't put a thumbnail in a container
thumbnail can not be added to a container directly. They can only be added to a section witch is then added to the container
Can you give me an example please?
see the above linked guide
If you question is how to add a section to a container see the bellow documentation
:method: ContainerBuilder#addSectionComponents()
discord.js@14.21.0
Adds section components to this container.