disrb 0.1.2 → 0.1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +17 -14
- data/lib/disrb.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 281bc6ea24c6df412e563a2b8961264240e058cbf895433c216964957beff5ae
|
4
|
+
data.tar.gz: 14d5149c99039845ee85e75c57f65cd9acc31242ed5c67600eb799b36e99c1cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2ffcb0bd4ec5ae0be535b21f005587427106a8840d07cbbb518b1047919ccb5149d74d0b464bfb878d44bba1e648920ef00ca3018bcdf7be4206f68c2160322
|
7
|
+
data.tar.gz: 798506bfcd44025ee9be06976d6b3b4fad6d932207a4c0dc1e98c0ee80cb3e4f7fa8a4760170c1c6438cdb8825b87d11085c9985d1b3a70dca99d4b8b72e6a14
|
data/README.md
CHANGED
@@ -1,8 +1,11 @@
|
|
1
1
|
# discord.rb indev
|
2
2
|
|
3
|
-
[
|
3
|
+
[](LICENSE)
|
4
|
+
[](https://rubygems.org/gems/disrb)
|
5
|
+

|
6
|
+
[](https://github.com/hoovad/discord.rb/actions/workflows/main.yml)
|
4
7
|
|
5
|
-
[
|
8
|
+
[Changelog](CHANGELOG.md) | [Documentation](https://www.rubydoc.info/gems/disrb/) (currently in development)
|
6
9
|
|
7
10
|
W.I.P. Discord API wrapper written in Ruby for fun.
|
8
11
|
|
@@ -20,17 +23,17 @@ The test.rb file creates two commands "test" and "test2", that return "Hi" and "
|
|
20
23
|
- [x] Basic gateway support
|
21
24
|
- [x] RubyGem building and publishing
|
22
25
|
- [ ] Alpha release (v0.2.0)
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
26
|
+
- [ ] Add support for all Discord API endpoints
|
27
|
+
- [ ] Add support for all Discord Gateway events and properly handle the connection
|
28
|
+
- [ ] Documentation (v0.1.3)
|
29
|
+
- [x] Transition to Faraday for HTTP requests (v0.1.1)
|
30
|
+
- [x] Functions where all options are optional, check if atleast one is provided (v0.1.1.1)
|
31
|
+
- [x] Prefer to use keyword arguments over positional arguments if there are more than 1 optional arguments (v0.1.1.1)
|
29
32
|
- [ ] Beta release (v0.3.0)
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
33
|
+
- [ ] Component support and builder
|
34
|
+
- [ ] Sharding support
|
35
|
+
- [ ] Rate limit handling
|
36
|
+
- [ ] Voice support
|
37
|
+
- [ ] Add parameter validation
|
35
38
|
- [ ] Stable release (v1.0.0)
|
36
|
-
|
39
|
+
- [ ] Bugfixes, consistency and improvements
|
data/lib/disrb.rb
CHANGED
@@ -429,7 +429,7 @@ class DiscordApi
|
|
429
429
|
url = if rescue_connection.nil?
|
430
430
|
response = DiscordApi.get("#{@base_url}/gateway")
|
431
431
|
if response.status == 200
|
432
|
-
"#{JSON.parse(response)['url']}/?v=#{@api_version}&encoding=json"
|
432
|
+
"#{JSON.parse(response.body)['url']}/?v=#{@api_version}&encoding=json"
|
433
433
|
else
|
434
434
|
@logger.fatal_error("Failed to get gateway URL. Response: #{response.body}")
|
435
435
|
exit
|