help compenentv2

My command does not display the user's avatar when I use his ID and I cannot find the problem.
18 Replies
d.js docs
d.js docs5mo ago
To share long code snippets, use a service like gist, sourcebin, pastebin, or similar instead of posting them as large code blocks or files.
Snoωly
SnoωlyOP5mo ago
When I do -avatar id it displays the author's avatar
d.js docs
d.js docs5mo ago
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 more
Snoωly
SnoωlyOP5mo ago
it doesn't stop there is no error but it doesn't work when I use the id ok wait
Snoωly
SnoωlyOP5mo ago
this is my terminal
Snoωly
SnoωlyOP5mo ago
Snoωly
SnoωlyOP5mo ago
It's my old one because I had gone to python
d.js docs
d.js docs5mo ago
The order of function parameters must match between definition and function call.
function execute(client, interaction) { ... };
execute(interaction, client);
function execute(client, interaction) { ... };
execute(interaction, client);
- mismatch! you pass an interaction where the client is expected - mismatch! you pass the client where an interaction is expected
Snoωly
SnoωlyOP5mo ago
I don't understand this I succeeded, thank you but I can't put a thumbnail in the container @Qjuh
Mafia
Mafia5mo ago
Thumbnails can only be added as an accessory to a section component. You can then add a section component to a container
d.js docs
d.js docs5mo ago
guide suggestion for @犠Snoωly14牲: :guide: Popular Topics: Display Components - Thumbnail read more
Snoωly
SnoωlyOP5mo ago
I can't🥲
Mafia
Mafia5mo ago
But you can. It's literally in the Discord documentation. See their example
Snoωly
SnoωlyOP5mo ago
I know but I can't put a thumbnail in a container
Mafia
Mafia5mo ago
thumbnail can not be added to a container directly. They can only be added to a section witch is then added to the container
Snoωly
SnoωlyOP5mo ago
Can you give me an example please?
Mafia
Mafia5mo ago
see the above linked guide If you question is how to add a section to a container see the bellow documentation
d.js docs
d.js docs5mo ago
:method: ContainerBuilder#addSectionComponents() discord.js@14.21.0 Adds section components to this container.

Did you find this page helpful?