1
1
mirror of https://github.com/go-gitea/gitea synced 2025-10-30 19:08:37 +00:00
Files
gitea/services/webhook/discord.go
ulnanlu 09d1f359d5 fix(webhook/discord): fixed username cannot be empty error (#35412)
username field is not required by discord and used to override the
default username. sending it as blank causes a 400 error. it should be
omitted instead when it's not set.

Ref:
https://discord.com/developers/docs/resources/webhook#execute-webhook-jsonform-params

Closes #35411
2025-09-05 11:19:31 -07:00

11 KiB