|
@@ -10,8 +10,6 @@
|
|
|
package discordgo
|
|
|
|
|
|
import (
|
|
|
- "bytes"
|
|
|
- "encoding/json"
|
|
|
"fmt"
|
|
|
"log"
|
|
|
"runtime"
|
|
@@ -20,21 +18,19 @@ import (
|
|
|
|
|
|
const (
|
|
|
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
LogError int = iota
|
|
|
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
LogWarning
|
|
|
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
LogInformational
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
LogDebug
|
|
|
)
|
|
|
|
|
@@ -95,6 +91,7 @@ func (v *VoiceConnection) log(msgL int, format string, a ...interface{}) {
|
|
|
}
|
|
|
|
|
|
|
|
|
+
|
|
|
func printJSON(body []byte) {
|
|
|
var prettyJSON bytes.Buffer
|
|
|
error := json.Indent(&prettyJSON, body, "", "\t")
|
|
@@ -103,3 +100,4 @@ func printJSON(body []byte) {
|
|
|
}
|
|
|
log.Println(string(prettyJSON.Bytes()))
|
|
|
}
|
|
|
+*/
|