Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tagscript-plugin-discord] Return thumbnail and image in object form #121

Open
imranbarbhuiya opened this issue Oct 12, 2022 · 0 comments
Open

Comments

@imranbarbhuiya
Copy link
Owner

imranbarbhuiya commented Oct 12, 2022

    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);
}

#119 (comment)

Originally posted by @imranbarbhuiya in #119 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant