Ask coding questions

← Back to all posts
adhafwhf asi es un peo de ajajaajajaj lkwhrfhadiahf miau pan
vicentediaz3

Hi
I have a question, so Im making a simple bot for discord and Im adding a embed message for welcome message but the first thing I put like ".setTitle" or any of the parts of the embed it says "SyntaxError: Unexpected token '.'" Anyone know wt can I do to fix it? here is a picture


Answered by Coder100 [earned 5 cycles]
View Answer
Voters
vicentediaz3
Comments
hotnewtop
Coder100

The syntax is wrong, here's the correct way:

What happens is you set embed to a message embed 'builder' where you call methods to make an embed!

vicentediaz3

@Coder100 I do what you said and the error stop but it dont work when someones join it doesnt says nothing

Coder100

@vicentediaz3 confirm the channel id is correct