Skip to content
This repository was archived by the owner on Feb 6, 2025. It is now read-only.

Webhook

Shell edited this page Nov 16, 2022 · 3 revisions

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.

Attributes


  • 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)


Methods


  • send(content) - Used to send messages via the webhook

  • delete - Used to delete the current webhook instance


yey

Clone this wiki locally