-
Notifications
You must be signed in to change notification settings - Fork 0
/
structs.go
56 lines (48 loc) · 1.02 KB
/
structs.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
package main
import (
"github.com/bwmarrin/discordgo"
"github.com/jonas747/dca"
)
type Options struct {
DiscordToken string
DiscordStatus string
DiscordPrefix string
DiscordPurgeTime int64
DiscordPlayStatus bool
YoutubeToken string
}
type Song struct {
ChannelID string
User string
ID string
VidID string
Title string
Duration string
VideoURL string
}
type SongSearch struct {
Id string
Name string
}
type VoiceInstance struct {
voice *discordgo.VoiceConnection
session *discordgo.Session
encoder *dca.EncodeSession
stream *dca.StreamingSession
nowPlaying Song
guildID string
speaking bool
stop bool
}
type BadQualitySongNodes struct {
BadQualitySongNodes []BadQualitySong `json:"songs"`
BadQualityVids []BadQualityVids `json:"vids"`
}
type BadQualitySong struct {
Title string `json:"title"`
FormatNo int `json:"formatNo"`
}
type BadQualityVids struct {
Author string `json:"author"`
FormatNo int `json:"formatNo"`
}