Get Webhook

BlockWebhooks

Get a webhook by its 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_webhook

Inputs

FieldInventScript nameValue
Webhook IDwebhook_id

Outputs

FieldInventScript nameValue
Webhook IDwebhook_id
Webhook Namewebhook_name
Channel IDwebhook_channel_id
Server IDwebhook_guild_id
Webhook Tokenwebhook_token
Webhook Typewebhook_type
Application IDwebhook_application_id
Webhook Avatarwebhook_avatar
Creator User IDwebhook_creator_id

Example InventScript

webhook := get_webhook(Args{webhook_id: "..."})
send_text_message(Args{
	channel_id:      trigger.channel_id,
	message_content: "Webhook ID: " + webhook.webhook_id,
})

More webhooks blocks