Skip to content

Commit

Permalink
fix(VoiceChannel#edit): incorrect bitrate (#2144)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lewdcario authored and iCrawl committed Dec 4, 2017
1 parent fb6d14d commit d705a0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/rest/RESTMethods.js
Expand Up @@ -318,7 +318,7 @@ class RESTMethods {
data.name = (_data.name || channel.name).trim();
data.topic = _data.topic || channel.topic;
data.position = _data.position || channel.position;
data.bitrate = _data.bitrate || channel.bitrate;
data.bitrate = _data.bitrate || (channel.bitrate ? channel.bitrate * 1000 : undefined);
data.user_limit = _data.userLimit || channel.userLimit;
data.parent_id = _data.parent || (channel.parent ? channel.parent.id : undefined);
return this.rest.makeRequest('patch', Endpoints.Channel(channel), true, data, undefined, reason).then(newData =>
Expand Down

0 comments on commit d705a0c

Please sign in to comment.