mirror of
https://github.com/danbulant/discord.js
synced 2026-05-29 12:20:23 +00:00
fix: GuildChannel#setTopic not nullable
This commit is contained in:
parent
f3ae7fd638
commit
92b421607e
1 changed files with 1 additions and 1 deletions
|
|
@ -333,7 +333,7 @@ class RESTMethods {
|
|||
updateChannel(channel, _data, reason) {
|
||||
const data = {};
|
||||
data.name = (_data.name || channel.name).trim();
|
||||
data.topic = _data.topic || channel.topic;
|
||||
data.topic = typeof _data.topic === 'undefined' ? channel.topic : _data.topic;
|
||||
data.position = _data.position || channel.position;
|
||||
data.bitrate = _data.bitrate || (channel.bitrate ? channel.bitrate * 1000 : undefined);
|
||||
data.user_limit = typeof _data.userLimit !== 'undefined' ? _data.userLimit : channel.userLimit;
|
||||
|
|
|
|||
Loading…
Reference in a new issue