discordaio.webhook

Webhooks are a low-effort way to post messages to channels in Discord. They do not require a bot user or authentication to use.

Classes

  • Webhook: Used to represent a webhook.
class discordaio.webhook.Webhook(id=0, guild_id=0, channel_id=0, user=None, name='', avatar='', token='')[source]

Used to represent a webhook.

New in version 0.2.0.

id

int – the id of the webhook

guild_id

int, optional – the guild id this webhook is for

channel_id

int – the channel id this webhook is for

user

User – the user this webhook was created by (not returned when getting a webhook with its token)

name

str – the default name of the webhook

avatar

str – the default avatar of the webhook

token

str – the secure token of the webhook

Inheritance

Inheritance diagram of Webhook