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 toolkit2y 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
DigitalOP2y ago
latest code is literally just listening to messageCreate, takes message.content, sends in new channel
Digital
DigitalOP2y ago
sexy dark chocolate
Can you show the code for when you sent thru the webhook
Digital
DigitalOP2y ago
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Digital
DigitalOP2y ago
also, type is deprecated
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Digital
DigitalOP2y ago
any secure way to get type aka only rich embeds i sow jiralite maybe to only check if embed contains url idk
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Digital
DigitalOP2y ago
but wont that still make link embeds?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
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
DigitalOP2y 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
Want results from more Discord servers?
Add your server