fix(VoiceChannel#edit): incorrect bitrate (#2144)

This commit is contained in:
Isabella
2017-12-03 22:38:06 -06:00
committed by Crawl
parent fb6d14d099
commit d705a0c7d0

View File

@@ -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 =>