zaanposni / discord-masz

MASZ is a selfhostable highly sophisticated moderation bot for Discord. Includes a web dashboard and a discord bot.
https://discord.gg/5zjpzw6h3S
Other
71 stars 17 forks source link

Bug with Audit Log page (MASZ v3.0.1) #527

Closed UponAnonymous closed 2 years ago

UponAnonymous commented 2 years ago

Describe the bug When changing the name of a channel and going on the audit log page on the MASZ Site, the new updated channel name doesn't appear and only shows it as the existing one. No console errors show up either

To Reproduce Steps to reproduce the behaviour:

  1. Go to your MASZ Audit log page and select a channel on any of the audit option
  2. Then in Discord, change the name of that channel
  3. Head back to the MASZ Audit log page, remove the channel from the "Target channel", Disable and enable the Audit, reload the page.
  4. After that try and find the new channel name on the "Target channel" box.

Expected behaviour Upon changing the name of the channel it should show up within the MASZ site, but only shows the old channel name even when reloading the page multiple times

Desktop (please complete the following information):

zaanposni commented 2 years ago

The MASZ backend caches data for 15minutes. This is needed to reduce response time from avg 2 seconds to several milliseconds. Therefore, you will sometimes need to wait for changes in discord to appear in MASZ.

This can be fixed and has been similiar to the role update or guild name changes that appear instantly in MASZ. However, as this is pretty low priority, I wont fix it right now, but if someone else wants to, I can guide them on how to do it :)

zaanposni commented 2 years ago

fixed in v3.1.0 release branch