TagScript
TagScript copied to clipboard
[`tagscript-plugin-discord`] Return `thumbnail` and `image` in object form
https://github.com/imranbarbhuiya/TagScript/issues/119#issuecomment-1273972081
How do I fix this issue?
This definitely needs to be changed but it'll be a breaking change so create a new issue and I'll fix it in the next major release (not very soon tho) till then you can fix it like this
const embedData = result,actions.embed;
if (embedData) {
if(typeof embedData.thumbnail === 'string') embedData.thumbnail = {url: embedData.thumbnail};
// same for image
embed = = new EmbedBuilder(embedData);
}
https://github.com/imranbarbhuiya/TagScript/issues/119#issuecomment-1273972081
Originally posted by @imranbarbhuiya in https://github.com/imranbarbhuiya/TagScript/issues/119#issuecomment-1274457216