backport(Guild): createChannel's default type incorrectly set (#3497)

Backports #3496 (a03e439d6b) to the 11.5-dev branch
This commit is contained in:
Ryan Munro
2019-10-01 18:59:02 +10:00
committed by SpaceEEC
parent 748555036d
commit 505df2ebb3

View File

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