From 505df2ebb3b49503d98f635534e9644db7375925 Mon Sep 17 00:00:00 2001 From: Ryan Munro Date: Tue, 1 Oct 2019 18:59:02 +1000 Subject: [PATCH] backport(Guild): createChannel's default type incorrectly set (#3497) Backports #3496 (a03e439d6b5459aaef8671c34f20f193e1248208) to the 11.5-dev branch --- src/client/rest/RESTMethods.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/rest/RESTMethods.js b/src/client/rest/RESTMethods.js index cf7fe82ec70b..f47e5d2c83cf 100644 --- a/src/client/rest/RESTMethods.js +++ b/src/client/rest/RESTMethods.js @@ -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,