mirror of
https://github.com/danbulant/discord.js
synced 2026-06-08 17:21:31 +00:00
backport(Guild): createChannel's default type incorrectly set (#3497)
Backports #3496 (a03e439d6b) to the 11.5-dev branch
This commit is contained in:
parent
748555036d
commit
505df2ebb3
1 changed files with 1 additions and 1 deletions
|
|
@ -276,7 +276,7 @@ class RESTMethods {
|
||||||
return this.rest.makeRequest('post', Endpoints.Guild(guild).channels, true, {
|
return this.rest.makeRequest('post', Endpoints.Guild(guild).channels, true, {
|
||||||
name,
|
name,
|
||||||
topic,
|
topic,
|
||||||
type: type ? Constants.ChannelTypes[type.toUpperCase()] : 'text',
|
type: type ? Constants.ChannelTypes[type.toUpperCase()] : Constants.ChannelTypes.TEXT,
|
||||||
nsfw,
|
nsfw,
|
||||||
bitrate,
|
bitrate,
|
||||||
user_limit: userLimit,
|
user_limit: userLimit,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue