discorb 0.0.6 → 0.0.7

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: ee2a3c4a3aa6c3f41d7138a4d50b51a38b6f5c92a4a3e569b6ec4c035b7109d0
4
- data.tar.gz: 810df7edee99dbfc2db097f43f37c5654f0e1c72554e3eeb667983b89171cdf9
3
+ metadata.gz: 066cdc59fc560a9d91badf19ac7628de7e7d7bf112b6a054ea68e697c7c738f2
4
+ data.tar.gz: 29558ecd466f3048aa3a7abac2b64bd526fee442cf7f84e49288e29422f0edc6
5
5
  SHA512:
6
- metadata.gz: d41a9a758f24e643b45de341d27944c901550190053b313df830a2894c22c2a5841fe4d5c5b2115250e208bec2fbdc4cf629220d47e3049a4d498ea4ef91af68
7
- data.tar.gz: 453ee62c4492bf692e86f5040292c0e89be91906556d94c8752888a90ab028ef9c94100c273ecbb15dcc7db33ebc6d18f3ce56938d91e66a66e18b3b46667632
6
+ metadata.gz: a8ff733e1fc0caefcfb902584b6a9c2826f0bf1e4372e44cd1cd7a66c32da9a460e7c2b69e26a63812f4d15a2f94b49548496f589b56903c75233045bc4aa66d
7
+ data.tar.gz: cec8a40047b30df81c0c8e84f17e1d2aa73ad69204420811ec51427682595060b6632c81eadcef6e4435f831179f2b57f22fd9dc6a01dd8929dc1c56b7e0eddc
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- discorb (0.0.6)
4
+ discorb (0.0.7)
5
5
  async
6
6
  async-http
7
7
  async-websocket
@@ -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.6"
7
+ VERSION = "0.0.7"
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
 
@@ -712,14 +712,14 @@ module Discorb
712
712
  dispatch(:member_add, nm)
713
713
  when "GUILD_MEMBER_UPDATE"
714
714
  return @log.warn "Unknown guild id #{data[:guild_id]}, ignoring" unless (guild = @guilds[data[:guild_id]])
715
- return @log.warn "Unknown member id #{data[:id]}, ignoring" unless (nm = guild.members[data[:id]])
715
+ return @log.warn "Unknown member id #{data[:user][:id]}, ignoring" unless (nm = guild.members[data[:user][:id]])
716
716
 
717
717
  old = Member.new(self, data[:guild_id], data[:user], data.update({ no_cache: true }))
718
718
  nm.send(:_set_data, data[:user], data)
719
719
  dispatch(:member_update, old, nm)
720
720
  when "GUILD_MEMBER_REMOVE"
721
721
  return @log.warn "Unknown guild id #{data[:guild_id]}, ignoring" unless (guild = @guilds[data[:guild_id]])
722
- return @log.warn "Unknown member id #{data[:id]}, ignoring" unless (member = guild.members.delete(data[:id]))
722
+ return @log.warn "Unknown member id #{data[:user][:id]}, ignoring" unless (member = guild.members.delete(data[:user][:id]))
723
723
 
724
724
  dispatch(:member_remove, member)
725
725
  when "GUILD_BAN_ADD"
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.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - sevenc-nanashi