APIWebhook
https://discord.com/developers/docs/resources/webhook#webhook-object
Signature
export interface APIWebhookProperties
12Methods
0No methods.
Properties
id: Snowflake;The id of the webhook
type: WebhookType;The type of the webhook See https://discord.com/developers/docs/resources/webhook#webhook-object-webhook-types
guild_id?: Snowflake;The guild id this webhook is for
channel_id: Snowflake;The channel id this webhook is for
user?: APIUser;The user this webhook was created by (not returned when getting a webhook with its token) See https://discord.com/developers/docs/resources/user#user-object
name: string | null;The default name of the webhook
avatar: string | null;The default avatar of the webhook
token?: string;The secure token of the webhook (returned for Incoming Webhooks)
application_id: Snowflake | null;The bot/OAuth2 application that created this webhook
source_guild?: APIPartialGuild;The guild of the channel that this webhook is following (returned for Channel Follower Webhooks)
source_channel?: APIPartialChannel;The channel that this webhook is following (returned for Channel Follower Webhooks)
url?: string;The url used for executing the webhook (returned by the webhooks OAuth2 flow)