1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-11-30 18:53:30 +00:00
arikawa/discord/webhook.go
Tadeo Kondrak d290b0d01c *: Add typed Snowflake IDs (#122)
This PR closes #120.
2020-07-29 16:58:33 -07:00

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
)