-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathtypes.go
More file actions
42 lines (38 loc) · 1.15 KB
/
types.go
File metadata and controls
42 lines (38 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package main
const (
ActionTypeCreated = "created"
ActionTypeCancelled = "cancelled"
ActionTypePendingCancellation = "pending_cancellation"
ActionTypePendingTierChange = "pending_tier_change"
ActionTypeTierChanged = "tier_changed"
)
type Tier struct {
IsOneTime bool `json:"is_one_time"`
MonthlyPriceInDollars int `json:"monthly_price_in_dollars"`
}
type SponsorShipEvent struct {
Action string `json:"action"`
Sponsorship struct {
PrivacyLevel string `json:"privacy_level"`
Sponsor struct {
AvatarUrl string `json:"avatar_url"`
HtmlUrl string `json:"html_url"`
UserName string `json:"login"`
} `json:"sponsor"`
Tier Tier `json:"tier"`
} `json:"sponsorship"`
EffectiveDate string `json:"effective_date"`
Changes struct {
Tier struct {
From Tier `json:"from"`
} `json:"tier"`
} `json:"changes"`
}
type DiscordWebhookPayload struct {
Content string `json:"content"`
AvatarUrl string `json:"avatar_url,omitempty"`
Username string `json:"username,omitempty"`
AllowedMentions struct {
Parse []string `json:"parse"`
} `json:"allowed_mentions"`
}