feat/add discord webhook support #35
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces support for sending notification responses to Discord webhooks in ChatNotify, allowing users to forward triggered chat events to Discord servers. It adds new configuration options, updates the GUI to manage webhook settings, and implements the backend logic for sending webhook messages. The documentation and changelog are also updated to reflect these new features.
Discord Webhook Integration
DISCORDresponse type to theResponse.Typeenum, enabling notifications to send messages to Discord webhooks.DiscordWebhookHandlerutility class to handle asynchronous sending of messages to Discord webhooks, including payload formatting and error handling.ResponseUtil.tickResponsesto handle theDISCORDresponse type and send messages via the webhook handler when enabled.Configuration and GUI Enhancements
discordWebhookEnabledanddiscordWebhookUrlfields to theConfigclass, with serialization/deserialization, default values, and version bump. [1] [2] [3] [4] [5] [6] [7]DetectionList) to allow users to enable/disable Discord webhook responses and enter the webhook URL. [1] [2]Documentation and Changelog Updates
Internal Improvements
Responseclass to store the original triggering message for use in Discord webhook payloads.These changes enable powerful new integrations for ChatNotify users who want to monitor Minecraft chat events remotely via Discord.