This repository has been archived by the owner on Mar 18, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
wrapper.go
97 lines (81 loc) · 1.94 KB
/
wrapper.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
package piepan // import "layeh.com/piepan"
import (
"layeh.com/gumble/gumble"
"layeh.com/gumble/gumbleutil"
)
type ConnectEventWrapper struct {
Client *gumble.Client
WelcomeMessage string
MaximumBitrate int
}
type DisconnectEventWrapper struct {
Client *gumble.Client
Type int
String string
IsError bool
IsUser bool
IsOther bool
IsVersion bool
IsUserName bool
IsUserCredentials bool
IsServerPassword bool
IsUsernameInUse bool
IsServerFull bool
IsNoCertificate bool
IsAuthenticatorFail bool
}
type TextMessageEventWrapper struct {
*gumble.TextMessageEvent
}
func (t *TextMessageEventWrapper) PlainText() string {
return gumbleutil.PlainText(&t.TextMessageEvent.TextMessage)
}
type UserChangeEventWrapper struct {
Client *gumble.Client
Type int
User *gumble.User
Actor *gumble.User
String string
IsConnected bool
IsDisconnected bool
IsKicked bool
IsBanned bool
IsRegistered bool
IsUnregistered bool
IsChangeName bool
IsChangeChannel bool
IsChangeComment bool
IsChangeAudio bool
IsChangeTexture bool
IsChangePrioritySpeaker bool
IsChangeRecording bool
}
type ChannelChangeEventWrapper struct {
Client *gumble.Client
Type int
Channel *gumble.Channel
IsCreated bool
IsRemoved bool
IsMoved bool
IsChangeName bool
IsChangeDescription bool
IsChangePosition bool
}
type PermissionDeniedEventWrapper struct {
Client *gumble.Client
Type int
Channel *gumble.Channel
User *gumble.User
Permission int
String string
IsOther bool
IsPermission bool
IsSuperUser bool
IsInvalidChannelName bool
IsTextTooLong bool
IsTemporaryChannel bool
IsMissingCertificate bool
IsInvalidUserName bool
IsChannelFull bool
IsNestingLimit bool
}