discordrb 3.0.1 → 3.0.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of discordrb might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/discordrb/api/channel.rb +2 -2
- data/lib/discordrb/commands/command_bot.rb +3 -2
- data/lib/discordrb/data.rb +1 -1
- data/lib/discordrb/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c072a97e659190bb7de8ba2f2ebe7483b7064b20
|
4
|
+
data.tar.gz: dafe2d7da6257050652b82c864478d3a3225c641
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9891d792cbe3c1b34b775a90a8829e136fc0f80a7166a98e4456d57a8833bd3a7d96c8cd512ffaa2cb25c9881c724a25a9eb209395117e06250c5c979abbb506
|
7
|
+
data.tar.gz: 5f67ff2dcaa46e19a4c5bf94c67838a0f21bbc47831553a585278018f0b4b3af1372badf2c3b68d5fad528f2ee9536ea57b009168e162f58c854bd508f124a45
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 3.0.2
|
4
|
+
|
5
|
+
- A small change to how CommandBot parameter lists are formatted ([#240](https://github.com/meew0/discordrb/pull/240), thanks @FormalHellhound)
|
6
|
+
|
7
|
+
### Bugfixes
|
8
|
+
|
9
|
+
- Setting properties on a channel (e.g. `Channel#topic=`) works again ([#238](https://github.com/meew0/discordrb/issues/238) / [#239](https://github.com/meew0/discordrb/pull/239), thanks @Daniel-Worrall)
|
10
|
+
|
3
11
|
## 3.0.1
|
4
12
|
|
5
13
|
A tiny update to support webhook-sent messages properly!
|
@@ -16,13 +16,13 @@ module Discordrb::API::Channel
|
|
16
16
|
|
17
17
|
# Update a channel's data
|
18
18
|
# https://discordapp.com/developers/docs/resources/channel#modify-channel
|
19
|
-
def update(token, channel_id, name, topic, position
|
19
|
+
def update(token, channel_id, name, topic, position, bitrate, user_limit)
|
20
20
|
Discordrb::API.request(
|
21
21
|
:channels_cid,
|
22
22
|
channel_id,
|
23
23
|
:patch,
|
24
24
|
"#{Discordrb::API.api_base}/channels/#{channel_id}",
|
25
|
-
{ name: name, position: position, topic: topic }.to_json,
|
25
|
+
{ name: name, position: position, topic: topic, bitrate: bitrate, user_limit: user_limit }.to_json,
|
26
26
|
Authorization: token,
|
27
27
|
content_type: :json
|
28
28
|
)
|
@@ -139,8 +139,9 @@ module Discordrb::Commands
|
|
139
139
|
result = "**`#{command_name}`**: #{desc}"
|
140
140
|
result += "\nUsage: `#{usage}`" if usage
|
141
141
|
if parameters
|
142
|
-
result += "\nAccepted Parameters
|
143
|
-
parameters.each { |p| result += "\n
|
142
|
+
result += "\nAccepted Parameters:\n```"
|
143
|
+
parameters.each { |p| result += "\n#{p}" }
|
144
|
+
result += '```'
|
144
145
|
end
|
145
146
|
result
|
146
147
|
else
|
data/lib/discordrb/data.rb
CHANGED
@@ -1366,7 +1366,7 @@ module Discordrb
|
|
1366
1366
|
private
|
1367
1367
|
|
1368
1368
|
def update_channel_data
|
1369
|
-
API.
|
1369
|
+
API::Channel.update(@bot.token, @id, @name, @topic, @position, @bitrate, @user_limit)
|
1370
1370
|
end
|
1371
1371
|
end
|
1372
1372
|
|
data/lib/discordrb/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: discordrb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- meew0
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-10-
|
11
|
+
date: 2016-10-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|