skyra-project / discord-components

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

request: React custom Provider for discord options #274

Closed wolffparkinson closed 1 year ago

wolffparkinson commented 1 year ago

Is your feature request related to a problem? Please describe.

Managing profiles would be easier and more intuitive with React Providers

Describe the solution you'd like

<DiscordOptionsContext.Provider value={discordOptions}>
  <DiscordMessages>
    <DiscordMessage>...</DiscordMessage>
  </DiscordMessages>
  <DiscordMessages>
    <DiscordMessage>...</DiscordMessage>
  </DiscordMessages>
</DiscordOptionsContext.Provider>

Reference : react-discord-message by Danktuary

Describe alternatives you've considered Custom components, but that feels hacky.

Additional context

favna commented 1 year ago

This is not possible because the React code is fully autogenerated by Stencil (unlike the referenced package) so we cannot add custom code, especially not without jumping through major hoops of fire that would make the build process extremely complex.

favna commented 1 year ago

Closing this as per the answer above