mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13: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, {
|
||||
name,
|
||||
topic,
|
||||
type: type ? Constants.ChannelTypes[type.toUpperCase()] : 'text',
|
||||
type: type ? Constants.ChannelTypes[type.toUpperCase()] : Constants.ChannelTypes.TEXT,
|
||||
nsfw,
|
||||
bitrate,
|
||||
user_limit: userLimit,
|
||||
|
||||
Reference in New Issue
Block a user