discordrb-webhooks 3.7.0 → 3.7.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/lib/discordrb/webhooks/client.rb +1 -1
- data/lib/discordrb/webhooks/version.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: 64adff3c11dc30cbe5688e48d2dad1b827fc6ef225cfce9d767e21082f3a0469
|
|
4
|
+
data.tar.gz: 11bc596b4feb9d4805ab73c313dc918a346ffde62db136fb544231b42f91014a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5742b179ad21db8f23f73b55da2a6739cf6a7c16b63a3368a83f01c4e7b59c7e72ca26aa17b5f8beceb1aca1a72e6b9431d8d5da158625ef4c199a7ded04e53a
|
|
7
|
+
data.tar.gz: 75516b95f3346a5774ddd5e0067613acad2b83bf055b55e4296c14c03b45202d3a9b0113409fab37e8d78f67e7f9df5becaba878b713cfd49bef05889359180e
|
|
@@ -132,7 +132,7 @@ module Discordrb::Webhooks
|
|
|
132
132
|
def post_multipart(builder, components, wait, thread_id)
|
|
133
133
|
query = URI.encode_www_form({ wait:, thread_id: }.compact)
|
|
134
134
|
data = builder.to_multipart_hash
|
|
135
|
-
data[:components] = components.to_a if components&.any?
|
|
135
|
+
data[:components] = components.to_a if components&.to_a&.any?
|
|
136
136
|
RestClient.post(@url + (query.empty? ? '' : "?#{query}"), data.compact)
|
|
137
137
|
end
|
|
138
138
|
|