Skip to content

Commit 23f1f76

Browse files
committed
fix broken unit tests
1 parent 7449a96 commit 23f1f76

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

api/reference.go

+7-9
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,19 @@
1717
package api
1818

1919
import (
20+
"fmt"
2021
"strconv"
2122
"time"
2223
)
2324

2425
/* API Versioning */
2526

26-
const apiBase string = "https://discord.com/api"
27-
const apiVersion string = "/v"
28-
const api = apiBase + apiVersion + string(rune(gatewayVersion))
29-
30-
/* Authentication */
31-
32-
/* Snowflakes */
33-
34-
const discordEpoch int64 = 1420070400000
27+
var (
28+
apiBase = "https://discord.com/api"
29+
apiVersion = fmt.Sprintf("/v%d", gatewayVersion)
30+
api = apiBase + apiVersion
31+
discordEpoch int64 = 1420070400000
32+
)
3533

3634
type Snowflake string
3735

0 commit comments

Comments
 (0)