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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/discorb/common.rb +1 -1
- data/lib/discorb/gateway.rb +2 -2
- 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: 066cdc59fc560a9d91badf19ac7628de7e7d7bf112b6a054ea68e697c7c738f2
|
4
|
+
data.tar.gz: 29558ecd466f3048aa3a7abac2b64bd526fee442cf7f84e49288e29422f0edc6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8ff733e1fc0caefcfb902584b6a9c2826f0bf1e4372e44cd1cd7a66c32da9a460e7c2b69e26a63812f4d15a2f94b49548496f589b56903c75233045bc4aa66d
|
7
|
+
data.tar.gz: cec8a40047b30df81c0c8e84f17e1d2aa73ad69204420811ec51427682595060b6632c81eadcef6e4435f831179f2b57f22fd9dc6a01dd8929dc1c56b7e0eddc
|
data/Gemfile.lock
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.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
|
|
data/lib/discorb/gateway.rb
CHANGED
@@ -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"
|