mojira / mojira-discord-bot

🎮 A Discord bot for linking to and providing information about Mojira tickets
https://discord.gg/rpCyfKV
GNU General Public License v3.0
19 stars 9 forks source link

Refresh internal requests on restart or add a command #202

Open chandler05 opened 3 years ago

chandler05 commented 3 years ago

The Problem

When some changes are implemented to change the way internal request embeds look or add new reactions, old embeds keep the same properties and don't change.

Possible Solution

These embeds could be readded on restart, or more likely after using a command to prevent rate limits and other issues that may arise from readding them every time the bot restarts.

In all honesty, it's probably not worth updating the embeds, but since the emojis can be edited via the config, it should be expected that these update when you change it. (on other servers)

violine1101 commented 3 years ago

I'd prefer an alternative solution, namely don't rely on Discord messages at all, but instead store all the stuff directly in a local data base that we can query without any delay. This would solve so many issues we currently have, but I still haven't come around to add that data base part and figure out how to do it properly in JS/TS.