mirror of
https://github.com/danbulant/discord.js
synced 2026-05-29 12:20:23 +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, {
|
||||
name,
|
||||
topic,
|
||||
type: type ? Constants.ChannelTypes[type.toUpperCase()] : 'text',
|
||||
type: type ? Constants.ChannelTypes[type.toUpperCase()] : Constants.ChannelTypes.TEXT,
|
||||
nsfw,
|
||||
bitrate,
|
||||
user_limit: userLimit,
|
||||
|
|
|
|||
Loading…
Reference in a new issue