Skip to content

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

@imranbarbhuiya

Description

@imranbarbhuiya
    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)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions