summaryrefslogtreecommitdiff
path: root/gateway/src/utils.rs
diff options
context:
space:
mode:
Diffstat (limited to 'gateway/src/utils.rs')
-rw-r--r--gateway/src/utils.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/gateway/src/utils.rs b/gateway/src/utils.rs
deleted file mode 100644
index 48a9aed..0000000
--- a/gateway/src/utils.rs
+++ /dev/null
@@ -1,8 +0,0 @@
-/// Formats a url of connection to the gateway
-pub fn get_gateway_url (compress: bool, encoding: &str, v: i16) -> String {
- return format!(
- "wss://gateway.discord.gg/?v={}&encoding={}&compress={}",
- v, encoding,
- if compress { "zlib-stream" } else { "" }
- );
-} \ No newline at end of file