diff options
| author | Zane Helton <zane99@me.com> | 2025-06-29 11:34:57 -0400 |
|---|---|---|
| committer | Zane Helton <zane99@me.com> | 2025-06-29 11:34:57 -0400 |
| commit | 590331518ce6f742773de4d90edaf5cd8dca8dc9 (patch) | |
| tree | 6664d50192ba194b33c94217ca2cefafe39ba904 /src/api/util | |
| parent | Refactor `/github` endpoint into it's own file (diff) | |
| download | server-ts-590331518ce6f742773de4d90edaf5cd8dca8dc9.tar.xz | |
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.
Diffstat (limited to 'src/api/util')
0 files changed, 0 insertions, 0 deletions
