github.com/diamondburned/arikawa@v1.3.14/discord/webhook.go (about)

     1  package discord
     2  
     3  type Webhook struct {
     4  	ID   WebhookID   `json:"id"`
     5  	Type WebhookType `json:"type"`
     6  	User User        `json:"user"` // creator
     7  
     8  	GuildID   GuildID   `json:"guild_id,omitempty"`
     9  	ChannelID ChannelID `json:"channel_id"`
    10  
    11  	Name   string `json:"name"`
    12  	Avatar Hash   `json:"avatar"`
    13  	Token  string `json:"token"` // incoming webhooks only
    14  }
    15  
    16  type WebhookType uint8
    17  
    18  const (
    19  	_ WebhookType = iota
    20  	IncomingWebhook
    21  	ChannelFollowerWebhook
    22  )