Add guild#createRole resolve permissions and RoleData optional (#1321)

* resolving permissions

* make RoleData optional
This commit is contained in:
SpaceEEC
2017-03-31 12:55:23 +02:00
committed by Crawl
parent f73e6a3e4d
commit e08f2bad30
2 changed files with 2 additions and 1 deletions

View File

@@ -683,7 +683,7 @@ class Guild {
* .then(role => console.log(`Created role ${role}`))
* .catch(console.error)
*/
createRole(data) {
createRole(data = {}) {
return this.client.rest.methods.createGuildRole(this, data);
}