Skip to content

[Feature Request] Discord Webhook Progress Update #27

Description

@D3thRoned

Hey

Since the Bot already creates Discord Notifications it would be awesome to watch the Progress there. The Console already Outputs the Watchtime x/Y Minutes watched. Based on this Progress the Notification could be updated.

The Webhook returns an JSON with Message Information if you append wait=1 as GET Paramter.

https://discord.com/api/webhooks/TOKEN?wait=1

{
    "type": 0,
    "content": "",
    "mentions": [],
    "mention_roles": [],
    "attachments": [],
    "embeds": [],
    "timestamp": "",
    "edited_timestamp": null,
    "flags": 0,
    "components": [],
    "id": "",
    "channel_id": "",
    "author": {},
    "pinned": false,
    "mention_everyone": false,
    "tts": false,
    "webhook_id": ""
}

The "id" returned by the Request can be used to update the Notification/Messages by appending it to the webhook and using PATCH instead of GET as Method

https://discord.com/api/webhooks/TOKEN/messages/ID

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions