Removed unused func
This commit is contained in:
parent
5322552229
commit
6c4d9f0ad7
1 changed files with 0 additions and 20 deletions
|
@ -52,26 +52,6 @@ func waitBoolEqual(timeout time.Duration, check *bool, want bool) bool {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Checks if we're connected to Discord
|
|
||||||
func isConnected() bool {
|
|
||||||
|
|
||||||
if dg == nil {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
|
|
||||||
if dg.Token == "" {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
|
|
||||||
// Need a way to see if the ws connection is nil
|
|
||||||
|
|
||||||
if !waitBoolEqual(10*time.Second, &dg.DataReady, true) {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
/////////////////////////////////////////////////////////////// START OF TESTS
|
/////////////////////////////////////////////////////////////// START OF TESTS
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue