chore: discordapp.com is deprecated

fix https://github.com/appleboy/drone-discord/issues/41

ref: https://github.com/discordjs/discord.js/pull/4160

Signed-off-by: appleboy <appleboy.tw@gmail.com>
This commit is contained in:
appleboy
2023-09-24 19:48:11 +08:00
parent 4bb2c902ad
commit 242a4e9588
2 changed files with 1 additions and 3 deletions
+1 -1
View File
@@ -220,7 +220,7 @@ func (p *Plugin) Exec() error {
// SendFile upload file to discord
func (p *Plugin) SendFile(file string) error {
webhookURL := fmt.Sprintf("https://discordapp.com/api/webhooks/%s/%s", p.Config.WebhookID, p.Config.WebhookToken)
webhookURL := fmt.Sprintf("https://discord.com/api/webhooks/%s/%s", p.Config.WebhookID, p.Config.WebhookToken)
extraParams := map[string]string{}
if p.Payload.Username != "" {