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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 746a55903872da764ecd6fb4c82992781e147245
4
- data.tar.gz: 519c53e91471feda8194fcc059ce825f4e4e613b
3
+ metadata.gz: c072a97e659190bb7de8ba2f2ebe7483b7064b20
4
+ data.tar.gz: dafe2d7da6257050652b82c864478d3a3225c641
5
5
  SHA512:
6
- metadata.gz: 52df6acf8f65d4ce36d3111d66e8b0957c3c02a6b0b3c01b98bbb638344d07e67c65dc704ed70a0104785c1874e83ab56609a8054531ddad3c740919518bd798
7
- data.tar.gz: 9edacd6ca16c117ac57f7dc1a9a327831ef497944a3a4508332ef6e8f633ae3b55646cb597d211728d11d32d6848b25e287da29969a2b8a2a37a61cb53a4045e
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 = 0)
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 `#{p}`" }
142
+ result += "\nAccepted Parameters:\n```"
143
+ parameters.each { |p| result += "\n#{p}" }
144
+ result += '```'
144
145
  end
145
146
  result
146
147
  else
@@ -1366,7 +1366,7 @@ module Discordrb
1366
1366
  private
1367
1367
 
1368
1368
  def update_channel_data
1369
- API.update_channel(@bot.token, @id, @name, @topic, @position, @bitrate, @user_limit)
1369
+ API::Channel.update(@bot.token, @id, @name, @topic, @position, @bitrate, @user_limit)
1370
1370
  end
1371
1371
  end
1372
1372
 
@@ -3,5 +3,5 @@
3
3
  # Discordrb and all its functionality, in this case only the version.
4
4
  module Discordrb
5
5
  # The current version of discordrb.
6
- VERSION = '3.0.1'.freeze
6
+ VERSION = '3.0.2'.freeze
7
7
  end
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.1
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-01 00:00:00.000000000 Z
11
+ date: 2016-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client