mirror of
https://github.com/appleboy/drone-discord.git
synced 2026-06-04 18:33:47 +08:00
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:
@@ -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 != "" {
|
||||
|
||||
Reference in New Issue
Block a user