discorb 0.5.3 → 0.5.4
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/Changelog.md +5 -1
- data/Gemfile.lock +1 -1
- data/lib/discorb/common.rb +1 -1
- data/lib/discorb/interaction.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: 62a9092a32b87c1edbb193c7b3de777b499257a9b08f92f88a741506ecef58fe
|
|
4
|
+
data.tar.gz: 3df9d14c6c7ec041d9887b3479af2417295e17b148c1aea780230e84b5c0d799
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f26088e7ce6f9a4bd5877263cc716722ca3523047df3623e49a082940251d3a97cea81c289239a3c9f0b456f9a21ee637f1adcd8e804084550b6af10c2aea02b
|
|
7
|
+
data.tar.gz: bda9f44c79c089e7cf55eeef4e774c20e3891baf09e0eb73fd2faa6e9337e5abca02b66c0e5e2c2db386d136144441f34afdf306bb427b3fcf40fa8f85f875ae
|
data/Changelog.md
CHANGED
|
@@ -123,4 +123,8 @@
|
|
|
123
123
|
- Add: Add way to handle raw events with `event_xxx`
|
|
124
124
|
- Add: Add `Client#session_id`
|
|
125
125
|
- Add: Add `Connectable`
|
|
126
|
-
- Fix: Fix error by sending DM
|
|
126
|
+
- Fix: Fix error by sending DM
|
|
127
|
+
|
|
128
|
+
## 0.5.4
|
|
129
|
+
|
|
130
|
+
- Fix: Fix issue of receiving component events
|
data/Gemfile.lock
CHANGED
data/lib/discorb/common.rb
CHANGED
|
@@ -4,7 +4,7 @@ module Discorb
|
|
|
4
4
|
# @return [String] The API base URL.
|
|
5
5
|
API_BASE_URL = "https://discord.com/api/v9"
|
|
6
6
|
# @return [String] The version of discorb.
|
|
7
|
-
VERSION = "0.5.
|
|
7
|
+
VERSION = "0.5.4"
|
|
8
8
|
# @return [String] The user agent for the bot.
|
|
9
9
|
USER_AGENT = "DiscordBot (https://github.com/discorb-lib/discorb #{VERSION}) Ruby/#{RUBY_VERSION}"
|
|
10
10
|
|
data/lib/discorb/interaction.rb
CHANGED
|
@@ -393,7 +393,7 @@ module Discorb
|
|
|
393
393
|
# @!visibility private
|
|
394
394
|
def make_interaction(client, data)
|
|
395
395
|
nested_classes.each do |klass|
|
|
396
|
-
return klass.new(client, data) if !klass.component_type.nil? && klass.component_type == data[:
|
|
396
|
+
return klass.new(client, data) if !klass.component_type.nil? && klass.component_type == data[:data][:component_type]
|
|
397
397
|
end
|
|
398
398
|
client.log.warn("Unknown component type #{data[:component_type]}, initialized Interaction")
|
|
399
399
|
MessageComponentInteraction.new(client, data)
|