discorb 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +2 -1
- data/lib/discorb/channel.rb +4 -0
- data/lib/discorb/common.rb +1 -1
- data/lib/discorb/guild.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: ee2a3c4a3aa6c3f41d7138a4d50b51a38b6f5c92a4a3e569b6ec4c035b7109d0
|
4
|
+
data.tar.gz: 810df7edee99dbfc2db097f43f37c5654f0e1c72554e3eeb667983b89171cdf9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d41a9a758f24e643b45de341d27944c901550190053b313df830a2894c22c2a5841fe4d5c5b2115250e208bec2fbdc4cf629220d47e3049a4d498ea4ef91af68
|
7
|
+
data.tar.gz: 453ee62c4492bf692e86f5040292c0e89be91906556d94c8752888a90ab028ef9c94100c273ecbb15dcc7db33ebc6d18f3ce56938d91e66a66e18b3b46667632
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
# discorb
|
2
2
|
[![rubydoc](https://img.shields.io/badge/Document-rubydoc.info-blue.svg)](https://rubydoc.info/gems/discorb)
|
3
3
|
[![Gem](https://img.shields.io/gem/dt/discorb?logo=rubygems&logoColor=fff)](https://rubygems.org/gems/discorb)
|
4
|
-
[![Gem](https://img.shields.io/gem/v/discorb?logo=rubygems&logoColor=fff)](https://rubygems.org/gems/discorb)
|
4
|
+
[![Gem](https://img.shields.io/gem/v/discorb?logo=rubygems&logoColor=fff)](https://rubygems.org/gems/discorb)
|
5
|
+
[![Discord](https://img.shields.io/discord/863581274916913193?logo=discord&logoColor=fff&color=5865f2&label=Discord)](https://discord.gg/hCP6zq8Vpj)
|
5
6
|
|
6
7
|
discorb is a Discord API wrapper for Ruby.
|
7
8
|
|
data/lib/discorb/channel.rb
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.0.
|
7
|
+
VERSION = "0.0.6"
|
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/guild.rb
CHANGED
@@ -1059,7 +1059,7 @@ module Discorb
|
|
1059
1059
|
@members = Discorb::Dictionary.new
|
1060
1060
|
data[:members].each do |m|
|
1061
1061
|
Member.new(@client, @id, m[:user], m)
|
1062
|
-
end
|
1062
|
+
end if data[:members]
|
1063
1063
|
@splash = data[:splash] && Asset.new(self, data[:splash], path: "splashes/#{@id}")
|
1064
1064
|
@discovery_splash = data[:discovery_splash] && Asset.new(self, data[:discovery_splash], path: "discovery-splashes/#{@id}")
|
1065
1065
|
@owner_id = data[:owner_id]
|