discorb 0.11.2 → 0.11.3
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 -0
- data/lib/discorb/common.rb +7 -1
- data/lib/discorb/message.rb +3 -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: 60cb51026c0c1eb4e339a808b7510dd6ff7ee01a3a14b556f9b563eb35c5a14c
|
|
4
|
+
data.tar.gz: ab9d5a60d0c798af8dc61b3d43bbdd29f289cd1d0b709080ffeb89e0c37319b0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dafecc3709155ce8c2d445b7ca19c5aa68744db6235f21dddea897dbc6d9c0dea83a226e49b6ef0a86649557abe7cb85463b43235cd721c5209d52c1cef31e07
|
|
7
|
+
data.tar.gz: 1f14f8800518ac494b2776d595585723a7e9a715be3c8f48b6ebc9a3857ae175951b82b1e1954765e2949df8839d9f995c1516f0db71825367806f06ecdb7707
|
data/Changelog.md
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.11.
|
|
7
|
+
VERSION = "0.11.3"
|
|
8
8
|
# @return [String] The user agent for the bot.
|
|
9
9
|
USER_AGENT = "DiscordBot (https://discorb-lib.github.io #{VERSION}) Ruby/#{RUBY_VERSION}"
|
|
10
10
|
|
|
@@ -64,6 +64,10 @@ module Discorb
|
|
|
64
64
|
# Increment of snowflake.
|
|
65
65
|
#
|
|
66
66
|
# @return [Integer] Increment of snowflake.
|
|
67
|
+
# @!attribute [r] id
|
|
68
|
+
# Alias of to_s.
|
|
69
|
+
#
|
|
70
|
+
# @return [String] The snowflake.
|
|
67
71
|
|
|
68
72
|
#
|
|
69
73
|
# Compares snowflake with other object.
|
|
@@ -105,5 +109,7 @@ module Discorb
|
|
|
105
109
|
def increment
|
|
106
110
|
@value & 0xFFF
|
|
107
111
|
end
|
|
112
|
+
|
|
113
|
+
alias id to_s
|
|
108
114
|
end
|
|
109
115
|
end
|
data/lib/discorb/message.rb
CHANGED