iperf3exporter/vendor/github.com/DisgoOrg/disgohook/api/webhook.go
Marvin Preuss 2343c9588a
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is failing
first commit
2021-10-20 10:08:56 +02:00

32 lines
794 B
Go

package api
import "io"
// WebhookType indicates the Webhook type
type WebhookType int
// all WebhookType(s)
const (
WebhookTypeIncoming WebhookType = iota + 1
WebhookTypeChannelFollower
WebhookTypeApplication
)
// Webhook represents a Discord Webhook
type Webhook struct {
ID Snowflake `json:"id"`
Type WebhookType `json:"type"`
GuildID *Snowflake `json:"guild_id"`
ChannelID *Snowflake `json:"channel_id"`
Name string `json:"name"`
Avatar string `json:"avatar"`
Token *string `json:"token"`
ApplicationID Snowflake `json:"application_id"`
}
// WebhookUpdate is used to update a Webhook
type WebhookUpdate struct {
Name *string `json:"name,omitempty"`
Avatar io.Reader `json:"avatar,omitempty"`
}