summaryrefslogtreecommitdiff
path: root/gateway/src/utils.rs
diff options
context:
space:
mode:
authorMatthieu <matthieu@developershouse.xyz>2021-11-05 19:04:58 +0400
committerMatthieu <matthieu@developershouse.xyz>2021-11-05 19:04:58 +0400
commit7ddb5d3820c15ce4202e6f43057310a9fbb7178a (patch)
treee61f4fd5bd6c515a5317adf8c8cbb10a362d91ff /gateway/src/utils.rs
parentb73f3c90ec2a491d59275818e3f61826471452ba (diff)
use twilight for deserialization and gateway
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