Skip to content

Commit

Permalink
backport(Guild): createChannel's default type incorrectly set (#3497)
Browse files Browse the repository at this point in the history
Backports #3496 (a03e439) to the 11.5-dev branch
  • Loading branch information
monbrey authored and SpaceEEC committed Oct 1, 2019
1 parent 7485550 commit 505df2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/rest/RESTMethods.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 505df2e

Please # to comment.