fix(Guild#createChannel): default to text (#2168)

update docs


doc fixes


real fix


stuf
This commit is contained in:
Isabella
2017-12-11 23:33:48 -06:00
committed by Crawl
parent 1c34819d47
commit 9f0417c09d
2 changed files with 3 additions and 3 deletions

View File

@@ -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);
}