This repository has been archived by the owner on Mar 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
types-legacy.go
67 lines (56 loc) · 1.88 KB
/
types-legacy.go
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
package eventide
import (
"time"
)
type GatewayURL struct {
URL string `json:"url"`
}
type OverwriteType int
const (
OverwriteRole OverwriteType = iota
OverwriteMember
)
type ChannelFlags int
const (
ChannelFlagsPinned ChannelFlags = iota
)
type Activity struct {
Name string `json:"activity"`
Type ActivityType `json:"type"`
URL string `json:"url"`
CreatedAt int `json:"created_at"`
Timestamps *ActivityTimestamp `json:"timestamps"`
ApplicationID string `json:"application_id"`
Details string `json:"details"`
State string `json:"state"`
Emoji *ActivityEmoji `json:"emoji"`
Party *ActivityParty `json:"party"`
Assets *ActivityAssets `json:"assets"`
Secrets *ActivitySecrets `json:"secrets"`
Instance bool `json:"instance"`
Buttons []*ActivityButton `json:"buttons"`
}
type WelcomeScreen struct {
Description *string `json:"description"`
WelcomeChannels []*WelcomeScreenChannel `json:"welcome_channels"`
}
type WelcomeScreenChannel struct {
ChannelID string `json:"channel_id"`
Description string `json:"description"`
EmojiID string `json:"emoji_id"`
EmojiName string `json:"emoji_name"`
}
type StageInstance struct {
ID string `json:"id"`
GuildID string `json:"guild_id"`
ChannelID string `json:"channel_id"`
Topic string `json:"topic"`
PrivacyLevel PrivacyLevel `json:"privacy_level"`
DiscoverableDisabled bool `json:"discoverable_disabled"`
GuildScheduledEventID string `json:"guild_scheduled_event_id"`
}
type MessageSend struct {
Content string `json:"content,omitempty"`
Embeds []*Embed `json:"embeds"`
TTS bool `json:"tts"`
}