1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-11-09 00:14:57 +00:00
arikawa/discord/webhook.go

23 lines
452 B
Go
Raw Normal View History

2020-01-19 02:27:30 +00:00
package discord
type Webhook struct {
ID WebhookID `json:"id"`
2020-01-19 02:27:30 +00:00
Type WebhookType `json:"type"`
User User `json:"user"` // creator
GuildID GuildID `json:"guild_id,omitempty"`
ChannelID ChannelID `json:"channel_id"`
2020-01-19 02:27:30 +00:00
Name string `json:"name"`
Avatar Hash `json:"avatar"`
Token string `json:"token"` // incoming webhooks only
}
type WebhookType uint8
const (
_ WebhookType = iota
IncomingWebhook
ChannelFollowerWebhook
)