skyra-project / discord-components

Discord Webcomponents for real looking messages on the web
MIT License
243 stars 33 forks source link

bug: discord-embed embed-title dynamic update from angularjs does not update #267

Closed MrFastDie closed 2 years ago

MrFastDie commented 2 years ago

Describe the bug

Im trying to make a preview for a discord bot at the moment. Therefore I created a designer for the given fields I already implemented on the bots side. Now I want to show the preview with this designer.

To Reproduce

I'm trying to do the following:


<discord-messages>
    <discord-message>
        {{queryContext.message}}
        <discord-embed
            slot="embeds"
            [color]="queryContext.embed.color"
            [embed-title]="queryContext.embed.title"
            [url]="queryContext.embed.url"
            [author-name]="queryContext.embed.author.name"
        >
            <discord-embed-description slot="description">
                {{queryContext.embed.text}}
            </discord-embed-description>
        </discord-embed>
    </discord-message>
</discord-messages>```

The fields embed-title and author-name will never get filled by this. However, if I set it to a hardcoded value it works. And a change on the color, or the url will have a positive result aswell. 

**Expected behavior**

Obviously I expect the fields to get set dynamically via angularjs aswell.
favna commented 2 years ago

AngularJS has been deprecated for quite a few years and has reached EOL in January 2022. You should update your application to Angular 14.