|
@@ -145,6 +145,10 @@ func TestGateway(t *testing.T) {
|
|
|
|
|
|
func TestVoiceICE(t *testing.T) {
|
|
func TestVoiceICE(t *testing.T) {
|
|
|
|
|
|
|
|
+ if dg == nil {
|
|
|
|
+ t.Skip("Skipping, dg not set.")
|
|
|
|
+ }
|
|
|
|
+
|
|
_, err := dg.VoiceICE()
|
|
_, err := dg.VoiceICE()
|
|
if err != nil {
|
|
if err != nil {
|
|
t.Errorf("VoiceICE() returned error: %+v", err)
|
|
t.Errorf("VoiceICE() returned error: %+v", err)
|
|
@@ -153,6 +157,10 @@ func TestVoiceICE(t *testing.T) {
|
|
|
|
|
|
func TestVoiceRegions(t *testing.T) {
|
|
func TestVoiceRegions(t *testing.T) {
|
|
|
|
|
|
|
|
+ if dg == nil {
|
|
|
|
+ t.Skip("Skipping, dg not set.")
|
|
|
|
+ }
|
|
|
|
+
|
|
_, err := dg.VoiceRegions()
|
|
_, err := dg.VoiceRegions()
|
|
if err != nil {
|
|
if err != nil {
|
|
t.Errorf("VoiceRegions() returned error: %+v", err)
|
|
t.Errorf("VoiceRegions() returned error: %+v", err)
|
|
@@ -164,6 +172,10 @@ func TestGuildRoles(t *testing.T) {
|
|
t.Skip("Skipping, DG_GUILD not set.")
|
|
t.Skip("Skipping, DG_GUILD not set.")
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if dg == nil {
|
|
|
|
+ t.Skip("Skipping, dg not set.")
|
|
|
|
+ }
|
|
|
|
+
|
|
_, err := dg.GuildRoles(envGuild)
|
|
_, err := dg.GuildRoles(envGuild)
|
|
if err != nil {
|
|
if err != nil {
|
|
t.Errorf("GuildRoles(envGuild) returned error: %+v", err)
|
|
t.Errorf("GuildRoles(envGuild) returned error: %+v", err)
|