bug: Changing webhook does not take effect
Describe the bug While I encountered problem #304 I also found that by changing the webhook the plugin did not change this parameter and continued to send the information to the previous one.
To Reproduce Steps to reproduce the behavior:
- Go to "File" > "Settings" > "BGS-Tally"
- Insert a new working WebHook replacing an old one
- Press "OK"
- Click on "Latest BGS Tally"
- Pressing the "Publish to Discord" button will send the report to the old webhook
Expected behavior When I change the webhook, I expect it to actually change
Desktop:
- OS: Windows 10 and 11
- Plugin Version 4.2.0
- EDMC Version 5.12.5
Log Files For privacy reasons on webhooks I can indicate that in the logs the old one is actually used, and not the updated one
Additional context The solution I found, although drastic, turned out to be effective: by completely deleting the plugin files, the problem is solved, presumably because the file in which the information from the previous webhook is saved is removed. This suggests that the file in question is not being updated correctly or that, despite the value being displayed correctly in the settings, the plugin continues to refer to data stored elsewhere (possibly in cache — but this is just a hypothesis).
I cannot replicate this in testing. Do you still have a copy of your BGS-Tally/otherdata/webhooks.json file you can send me privately?
I will send a copy by the weekend
Closing, cannot replicate.