-
Notifications
You must be signed in to change notification settings - Fork 18
Webhook
The selfcord model, Webhook is used to represent the discord webhook. They are used to send messages to a channel without a bot/user authentication, only the URL is required.
-
id (str)
- Unique snowflake per webhook instance -
type (int)
- Type of webhook (incoming, channel follower, application) -
guild_id (str)
- The guild id this webhook is for -
channel_id (str)
- The channel id this webhook is for -
name (str)
- The name of the webhook -
avatar (str)
- The avatar hash of the webhook -
token (str)
- The token of the webhook -
application_id (str)
- The bot/oauth2 application that created this webhook -
webhook_url (str)
- The URL of the webhook -
source_channel (str)
- The channel this webhook is following (for channel follower webhooks) -
source_guild (str)
- The guild this webhook is following (for channel follower webhooks)
-
send(content)
- Used to send messages via the webhook -
delete
- Used to delete the current webhook instance
Our discord server: https://discord.gg/M43gDaHsry
yey