2019-01-13 23:37:38 +00:00
|
|
|
package gavalink
|
|
|
|
|
|
|
|
type basicMessage struct {
|
|
|
|
Op string `json:"op"`
|
|
|
|
GuildID string `json:"guildId,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type playMessage struct {
|
2019-01-13 23:38:29 +00:00
|
|
|
Op string `json:"op"`
|
|
|
|
GuildID string `json:"guildId,omitempty"`
|
|
|
|
Track string `json:"track,omitempty"`
|
|
|
|
StartTime string `json:"startTime,omitempty"`
|
|
|
|
EndTime string `json:"endTime,omitempty"`
|
2019-01-13 23:37:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type pauseMessage struct {
|
2019-01-13 23:38:29 +00:00
|
|
|
Op string `json:"op"`
|
|
|
|
GuildID string `json:"guildId,omitempty"`
|
|
|
|
Pause bool `json:"pause,omitempty"`
|
2019-01-13 23:37:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type seekMessage struct {
|
|
|
|
Op string `json:"op"`
|
|
|
|
GuildID string `json:"guildId,omitempty"`
|
|
|
|
Position *int `json:"position,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type volumeMessage struct {
|
|
|
|
Op string `json:"op"`
|
|
|
|
GuildID string `json:"guildId,omitempty"`
|
2019-01-13 23:38:29 +00:00
|
|
|
Volume int `json:"volume,omitempty"`
|
2019-01-13 23:37:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type voiceUpdateMessage struct {
|
|
|
|
Op string `json:"op"`
|
|
|
|
GuildID string `json:"guildId,omitempty"`
|
|
|
|
SessionID string `json:"sessionId,omitempty"`
|
|
|
|
Event *VoiceServerUpdate `json:"event,omitempty"`
|
|
|
|
}
|
2019-02-04 00:31:53 +00:00
|
|
|
|
|
|
|
type listenMessage struct {
|
|
|
|
Op string `jwon:"op"`
|
|
|
|
GuildID string `json:"guildId,omitempty"`
|
|
|
|
UserID string `json:"userId,omitempty"`
|
|
|
|
Listen bool `json:"listen"`
|
|
|
|
}
|