foobara-discord-api 0.0.1 → 0.0.2
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 +4 -0
- data/src/create_message.rb +4 -14
- 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: 39c2e3b6247ea95acf1fd36deebca574371e5c76ae99eb696d41cb558bd1fa18
|
|
4
|
+
data.tar.gz: ce0bf6aa85517da7945593c9b460ac815cb898198f055529c38362515efa8d43
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 122fbba60610364a00e48d6e3cb9b01b678f0391548d1379a0c94f688fda31b354c148e211bcec2e64e6a327e55a510981cc3f5c060651edba7db4bdd8cfefef
|
|
7
|
+
data.tar.gz: b5739bd62f61bb8a536b157df436ebcd258daa29b49cfbf5b547a846251956e3ea1ae7b96d70e01c4317993333e878e09718cde5ca035a5e6373c165b74319f4
|
data/CHANGELOG.md
CHANGED
data/src/create_message.rb
CHANGED
|
@@ -20,23 +20,13 @@ module Foobara
|
|
|
20
20
|
end
|
|
21
21
|
|
|
22
22
|
def build_request_body
|
|
23
|
-
self.request_body = {
|
|
24
|
-
|
|
25
|
-
content:
|
|
26
|
-
|
|
27
|
-
# tts: false,
|
|
28
|
-
# embeds: [{
|
|
29
|
-
# title: "Hello, Embed!",
|
|
30
|
-
# description: "This is an embedded message."
|
|
31
|
-
# }]
|
|
32
|
-
|
|
33
|
-
}
|
|
23
|
+
self.request_body = { content: }
|
|
34
24
|
end
|
|
35
25
|
|
|
36
26
|
# Comment out this three lines when testing new models or looking for new attributes.
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
27
|
+
def build_result
|
|
28
|
+
Message.new(response_body, ignore_unexpected_attributes: true)
|
|
29
|
+
end
|
|
40
30
|
end
|
|
41
31
|
end
|
|
42
32
|
end
|