Commit Graph

8 Commits

Author SHA1 Message Date
CyberL1 4e4020e146 fix: send 204 even if event is invalid (discord does this, idk why) 2025-12-02 11:53:34 +01:00
CyberL1 03ef043190 chore: remove debug log 2025-12-02 11:30:01 +01:00
CyberL1 c07a30efab refactor: refactor github webhooks embeds to match discord's 2025-12-02 11:25:41 +01:00
Rory& e52c237326 Reorganise schemas a little bit 2025-10-15 08:04:23 +02:00
Rory& d647f882b1 Pass mergeParams: true to new router calls due to express behavior change 2025-09-30 07:14:10 +02:00
Zane Helton ed85ba3dc2 Proxy avatar URL + adjust event logic
I've proxied the URLs with `getProxyUrl` specifying the size as 80x80.

I've also adjusted the event logic so that unstarring doesn't trigger an
alert and I've disabled the 'watch' event because Discord doesn't use
it either.
2025-06-29 12:17:24 -04:00
Zane Helton 590331518c Make tsc happy when using strings as Date in embed
Validation on embeds has interesting behavior. Embeds have a `timestamp`
property that is of type `Date`. However when providing a Date,
`WebhookExecuteSchema` silently ends the operation.

The resolution was to use strings and to annotate them with `//
@ts-expect-error`. This was not my first choice, but it was the best
option I saw.

The other option is to allow `Embeds` to pass strings as a timestamp but
I'd want a second opinion before making that change.
2025-06-29 11:34:57 -04:00
Zane Helton 9143c1d408 Refactor /github endpoint into it's own file 2025-06-29 10:46:16 -04:00