webhook := get_webhook(Args{webhook_id: "..."})
send_text_message(Args{
channel_id: trigger.channel_id,
message_content: "Webhook ID: " + webhook.webhook_id,
})
Inputs
Webhook IDRequired
ID of the webhook to get.
Outputs
Webhook ID
ID of the webhook.
Webhook Name
Name of the webhook.
Channel ID
Channel ID the webhook belongs to.
Server ID
Server ID the webhook belongs to.
Webhook Token
Token of the webhook (may be empty).
Webhook Type
Type of the webhook (1 = Incoming, 2 = Channel Follower, 3 = Application).
Application ID
Application ID that created the webhook (if applicable).
Webhook Avatar
Avatar hash of the webhook.
Creator User ID
ID of the user that created the webhook.
Build a bot using blocks like Get Webhook
Use this block in our visual flow editor. Bots are hosted 24/7 for free on inventor.bot.
Advanced Documentation
This documentation can be useful when using code mode. View as Markdown
ID:
get_webhookInputs
| Field | InventScript name | Value |
|---|---|---|
| Webhook ID | webhook_id |
Outputs
| Field | InventScript name | Value |
|---|---|---|
| Webhook ID | webhook_id | |
| Webhook Name | webhook_name | |
| Channel ID | webhook_channel_id | |
| Server ID | webhook_guild_id | |
| Webhook Token | webhook_token | |
| Webhook Type | webhook_type | |
| Application ID | webhook_application_id | |
| Webhook Avatar | webhook_avatar | |
| Creator User ID | webhook_creator_id |