matrix-org / matrix-appservice-discord

A bridge between Matrix and Discord.
Apache License 2.0
790 stars 148 forks source link

custom emoji bridging matrix -> discord #846

Open ashkitten opened 1 year ago

ashkitten commented 1 year ago

Is your feature request related to a problem? Please describe. it should be possible to send custom emojis from matrix and have them bridged to discord

Describe the solution you'd like

  1. for discord servers, the room (or space, but appservice-discord doesn't support bridging servers as spaces yet) could contain an emoji pack with the discord server's custom emojis. sending one of these custom emojis from matrix would send the appropriate custom emoji on discord.
  2. for custom emoji elsewhere on matrix, it may be possible to reserve some custom emoji slots on discord in order to use as scratch space. when sending a custom emoji from matrix, the appservice would:
    • add the emoji to the discord server (requires "manage emojis" permission)
    • send the message with emoji
    • delete the emoji afterwards

the caveat with all of this is that discord doesn't allow sending animated emojis without nitro, and webhooks can't take advantage of that feature. in the case of trying to send an animated custom emoji from matrix, a still frame should be used instead.

Describe alternatives you've considered only support custom emojis from the discord server, just send the shortcode if a matrix user tries to send any other custom emoji

jaller94 commented 1 year ago

Sounds similar to https://github.com/matrix-org/matrix-appservice-discord/issues/685