mirror of
https://github.com/danbulant/discord.js
synced 2026-06-06 08:11:50 +00:00
voice: fix #2635 (channel bitrate not being set)
This commit is contained in:
parent
a667e44c4d
commit
695ff1e70f
1 changed files with 1 additions and 1 deletions
|
|
@ -342,7 +342,7 @@ class RESTMethods {
|
||||||
data.position = _data.position || channel.position;
|
data.position = _data.position || channel.position;
|
||||||
data.bitrate = _data.bitrate || (channel.bitrate ? channel.bitrate * 1000 : undefined);
|
data.bitrate = _data.bitrate || (channel.bitrate ? channel.bitrate * 1000 : undefined);
|
||||||
data.user_limit = typeof _data.userLimit !== 'undefined' ? _data.userLimit : channel.userLimit;
|
data.user_limit = typeof _data.userLimit !== 'undefined' ? _data.userLimit : channel.userLimit;
|
||||||
data.parent_id = _data.parent === null ? null : _data.parent || (channel.parent ? channel.parent.id : undefined);
|
data.parent_id = _data.parent;
|
||||||
return this.rest.makeRequest('patch', Endpoints.Channel(channel), true, data, undefined, reason).then(newData =>
|
return this.rest.makeRequest('patch', Endpoints.Channel(channel), true, data, undefined, reason).then(newData =>
|
||||||
this.client.actions.ChannelUpdate.handle(newData).updated
|
this.client.actions.ChannelUpdate.handle(newData).updated
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue