-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.go
83 lines (61 loc) · 1.88 KB
/
types.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
package regolt
type ClearType string
const ClearTypeIcon ClearType = "Icon"
const ClearTypeDescription ClearType = "Description"
const ClearTypeBanner ClearType = "Banner"
const ClearTypeColour ClearType = "Colour"
func (c ClearType) IsIcon() bool {
return c == ClearTypeIcon
}
func (c ClearType) IsDescription() bool {
return c == ClearTypeDescription
}
func (c ClearType) IsBanner() bool {
return c == ClearTypeBanner
}
func (c ClearType) IsColour() bool {
return c == ClearTypeColour
}
type RelationshipStatus string
const RelationshipBlocked RelationshipStatus = "Blocked"
const RelationshipBlockedOther RelationshipStatus = "BlockedOther"
const RelationshipFriend RelationshipStatus = "Friend"
const RelationshipIncoming RelationshipStatus = "Incoming"
const RelationshipNone RelationshipStatus = "None"
const RelationshipOutgoing RelationshipStatus = "Outgoing"
const RelationshipUser RelationshipStatus = "User"
func (r RelationshipStatus) IsBlocked() bool {
return r == RelationshipBlocked
}
func (r RelationshipStatus) IsBlockedOther() bool {
return r == RelationshipBlockedOther
}
func (r RelationshipStatus) IsFriend() bool {
return r == RelationshipFriend
}
func (r RelationshipStatus) IsIncoming() bool {
return r == RelationshipIncoming
}
func (r RelationshipStatus) IsNone() bool {
return r == RelationshipNone
}
func (r RelationshipStatus) IsOutgoing() bool {
return r == RelationshipOutgoing
}
func (r RelationshipStatus) IsUser() bool {
return r == RelationshipUser
}
type ChannelType string
const ChannelTypeText ChannelType = "Text"
const ChannelTypeVoice ChannelType = "Voice"
func (c ChannelType) IsText() bool {
return c == ChannelTypeText
}
func (c ChannelType) IsVoice() bool {
return c == ChannelTypeVoice
}
type RoleClearType string
const RoleClearTypeColour RoleClearType = "Colour"
func (r RoleClearType) IsColour() bool {
return r == RoleClearTypeColour
}