mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 04:23:31 +01:00
backport(Guild): createChannel's default type incorrectly set (#3497)
Backports #3496 (a03e439d6b) to the 11.5-dev branch
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user