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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d38df4e18e2f0c0ab604723c2cd799b506863fc99a1bf48482b538174a65f2ae
4
- data.tar.gz: 5a861ab96babd57d7be950c5e178bece1528d70a1bf39540a947a676a01d6d59
3
+ metadata.gz: ee2a3c4a3aa6c3f41d7138a4d50b51a38b6f5c92a4a3e569b6ec4c035b7109d0
4
+ data.tar.gz: 810df7edee99dbfc2db097f43f37c5654f0e1c72554e3eeb667983b89171cdf9
5
5
  SHA512:
6
- metadata.gz: d7dcd629994dd0c52c8a7af393822913498072e358f33d0ee97e1a3f6627d26c5eb30b014908012ed7c109f0ed1c8d1463a94d72f3165abd47ef4e275900999c
7
- data.tar.gz: d04c1c1212f5bb653c6b6221b255da8ee4b1f1b6ca0602424d552d3f8a5aeb60a443db99056155490af7d3f7d9408d03108802fda4606a1645e91a169b2e6379
6
+ metadata.gz: d41a9a758f24e643b45de341d27944c901550190053b313df830a2894c22c2a5841fe4d5c5b2115250e208bec2fbdc4cf629220d47e3049a4d498ea4ef91af68
7
+ data.tar.gz: 453ee62c4492bf692e86f5040292c0e89be91906556d94c8752888a90ab028ef9c94100c273ecbb15dcc7db33ebc6d18f3ce56938d91e66a66e18b3b46667632
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- discorb (0.0.5)
4
+ discorb (0.0.6)
5
5
  async
6
6
  async-http
7
7
  async-websocket
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
 
@@ -975,6 +975,10 @@ module Discorb
975
975
  end
976
976
  end
977
977
 
978
+ class News < ThreadChannel
979
+ @channel_type = 10
980
+ end
981
+
978
982
  class Public < ThreadChannel
979
983
  @channel_type = 11
980
984
  end
@@ -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.5"
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]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: discorb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - sevenc-nanashi