amoorion_discord.webhook

discord-webhook plugin: a channel webhook, no bot.

Secret: url, the channel’s webhook URL; it posts, and deletes what it posted.

Classes

DiscordWebhook(vault[, view])

A Discord channel webhook: no bot needed, only its URL.

class amoorion_discord.webhook.DiscordWebhook(vault, view=None)[source]

Bases: HttpPlugin

A Discord channel webhook: no bot needed, only its URL.

It can post and delete what it posted, but it can’t read.

Parameters:
hidden()[source]

What must never appear in an error: it is in the URLs.

Return type:

list[str]

post(post)[source]

Publish a post; answers the message as the platform stored it.

Parameters:

post (Post)

Return type:

Message

delete(message)[source]

Delete a message by its id.

Parameters:

message (Message)

Return type:

None

profile()[source]

The name this account gets in the dataset.

Return type:

str