mirror of
https://github.com/stoatchat/javascript-client-sdk.git
synced 2026-07-20 20:16:06 -04:00
bug: TextEmbed not working #35
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kenyonbowers on GitHub (Apr 29, 2024).
What happened?
My code is this:
Yet, I keep getting this error:
I have tried putting a value
icon_urlin the TextEmbed, and even gave a valid image url, yet it keeps giving me the exact same error. I also tried putting it asiconUrlto see if that worked, and it didn't.@austinhuang0131 commented on GitHub (Jun 5, 2024):
The
icon_urlneeds to be in the initiator of MessageEmbed. Seehttps://github.com/revoltchat/revolt.js/blob/929d1bc0696f125748ccd9302b75ee4e8a1a1c8c/src/classes/MessageEmbed.ts#L218
@insertish commented on GitHub (Oct 2, 2024):
That class expects Client to be present, also this isn't intended for creating embeds (currently), you should just create the structure 'classless' so to speak. i.e.
sendMessage({ embeds: [ { .. embed code } ] })