Auto Embed

I have the issue where if user sends 2 links, they will properly embed as above, but when bot/webhook sends same content aka those 2 links, embeds will be created, why?
17 Replies
d.js toolkit
d.js toolkit3y ago
• 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.
Digital
DigitalOP3y ago
latest code is literally just listening to messageCreate, takes message.content, sends in new channel
Digital
DigitalOP3y ago
sexy dark chocolate
Can you show the code for when you sent thru the webhook
Digital
DigitalOP3y ago
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Digital
DigitalOP3y ago
also, type is deprecated
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Digital
DigitalOP3y ago
any secure way to get type aka only rich embeds i sow jiralite maybe to only check if embed contains url idk
Rhae
Rhae3y ago
Use markdown to send the links and just pass empty "" in the square brackets and you won't see the link in the content but will still attach the image.
Digital
DigitalOP3y ago
but wont that still make link embeds?
Rhae
Rhae3y ago
no..
sexy dark chocolate
OHHHH, Webhook That makes so much more sense why it would embed
sexy dark chocolate
discord.js
discord.js
discord.js is a powerful Node.js module that allows you to interact with the Discord API very easily. It takes a much more object-oriented approach than most other JS Discord libraries, making your bot's code significantly tidier and easier to comprehend.
sexy dark chocolate
It sees the link as a website or sumn maybe rather than an image Might be wrong, jus a thought
Digital
DigitalOP3y ago
wym exactly, it doesnt really have to do anything with code except if you dont filter embeds because when taking raw message, bot will take those images as url embeds and it just copies them true

Did you find this page helpful?