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
• 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.latest
code is literally just listening to messageCreate, takes message.content, sends in new channel
Can you show the code for when you sent thru the webhook
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
also, type is deprecated
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
any secure way to get type
aka only rich embeds
i sow jiralite
maybe to only check if embed contains url
idk
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
but wont that still make link embeds?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
OHHHH, Webhook
That makes so much more sense why it would embed
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.
It sees the link as a website or sumn maybe rather than an image
Might be wrong, jus a thought
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