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

the id of the webhook

Type:int
guild_id

the guild id this webhook is for

Type:int, optional
channel_id

the channel id this webhook is for

Type:int
user

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

Type:User
name

the default name of the webhook

Type:str
avatar

the default avatar of the webhook

Type:str
token

the secure token of the webhook

Type:str

Inheritance

Inheritance diagram of Webhook