mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 09:33:32 +01:00
fix(Guild#createChannel): default to text (#2168)
update docs doc fixes real fix stuf
This commit is contained in:
@@ -279,7 +279,7 @@ class RESTMethods {
|
||||
}
|
||||
return this.rest.makeRequest('post', Endpoints.Guild(guild).channels, true, {
|
||||
name: channelName,
|
||||
type: Constants.ChannelTypes[channelType.toUpperCase()],
|
||||
type: channelType ? Constants.ChannelTypes[channelType.toUpperCase()] : 'text',
|
||||
permission_overwrites: overwrites,
|
||||
}, undefined, reason).then(data => this.client.actions.ChannelCreate.handle(data).channel);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user