mirror of
https://github.com/diamondburned/arikawa.git
synced 2024-12-11 07:54:58 +00:00
d290b0d01c
This PR closes #120.
23 lines
452 B
Go
23 lines
452 B
Go
package discord
|
|
|
|
type Webhook struct {
|
|
ID WebhookID `json:"id"`
|
|
Type WebhookType `json:"type"`
|
|
User User `json:"user"` // creator
|
|
|
|
GuildID GuildID `json:"guild_id,omitempty"`
|
|
ChannelID ChannelID `json:"channel_id"`
|
|
|
|
Name string `json:"name"`
|
|
Avatar Hash `json:"avatar"`
|
|
Token string `json:"token"` // incoming webhooks only
|
|
}
|
|
|
|
type WebhookType uint8
|
|
|
|
const (
|
|
_ WebhookType = iota
|
|
IncomingWebhook
|
|
ChannelFollowerWebhook
|
|
)
|