首页 > 解决方案 > 尝试为我的 Discord 服务器制作 IFTTT webhook

问题描述

因此,我正在尝试将 Google 日历链接到 Discord webhook 以获取事件通知和其他内容。我在用着

如果任何活动开始(谷歌日历)

然后发出网络请求(Discord webhook URL)

据我所知,日历部分很好,因为它确实触发了小程序,我可以看到小程序活动日志中显示的事件的所有正确信息。

The code I'm using is this:
{
    "embeds": [
        {
            "title": "<<< {{Title}}>>>",
            "url": "<<<{{EventUrl}}>>>",
            "description": "Event alert message",
            "fields": [
                {
                    "name": "Start Time",
                    "value": "<<<{{Starts}}>>>",
                    "inline": "true"
                },
                {
                    "name": "End Time",
                    "value": "<<<{{Ends}}>>>",
                    "inline": "True"
                },
                {
                    "name": "Location",
                    "value": "<<<{{Where}}>>>"
                }
            ]
        }
    ]
}

日志中的错误信息是:

操作失败消息

您的服务器返回 400。无法向https://discord.com/api/webhooks/mywebhookurl发出 Web 请求

标签: jsondiscordwebhooksifttt

解决方案


推荐阅读