Added Incident Webhook Functionality#378
Added Incident Webhook Functionality#378MonkeyWhisper merged 3 commits intoProject-Sloth:mainfrom TheMajorMayhem:main
Conversation
| end | ||
|
|
||
| function sendIncidentToDiscord(color, name, message, footer) | ||
| if ClockinWebhook == '' then |
There was a problem hiding this comment.
My mistake will fix this right now
There was a problem hiding this comment.
Wait - this is just the clock in webhook for the time clock - this should be correct.
There was a problem hiding this comment.
Wait - this is just the clock in webhook for the time clock - this should be correct.
No, you're using the function sendIncidentToDiscord and sending it to ClockinWebhook, it needs to be sent to IncidentWebhook
There was a problem hiding this comment.
@MonkeyWhisper - I have corrected this issue. My fault, for whatever reason I was having a brain fart.
| end | ||
|
|
||
| function sendIncidentToDiscord(color, name, message, footer) | ||
| if ClockinWebhook == '' then |
There was a problem hiding this comment.
Wait - this is just the clock in webhook for the time clock - this should be correct.
No, you're using the function sendIncidentToDiscord and sending it to ClockinWebhook, it needs to be sent to IncidentWebhook
With this PR I have added the ability to have your Incident reports sent to a Discord Webhook.
This works with creating a new Incident as well as with Editing and Saving an incident.
Steps to complete:
This has been tested on my Dev Server, as well as on my live multiplayer server without issue.
Preview of Webhook working: https://i.imgur.com/FpwyAvH.png