Backport: Guild#createChannel (#2145)

* Backport: Guild#createChannel

* this should not return a buffer
This commit is contained in:
Isabella
2017-12-06 00:08:46 -06:00
committed by Crawl
parent d705a0c7d0
commit 862b2ec3d4
4 changed files with 57 additions and 4 deletions

View File

@@ -155,7 +155,7 @@ class GuildChannel extends Channel {
* @param {Role|Snowflake|UserResolvable} userOrRole The user or role to update
* @param {PermissionOverwriteOptions} options The configuration for the update
* @param {string} [reason] Reason for creating/editing this overwrite
* @returns {Promise}
* @returns {Promise<GuildChannel>}
* @example
* // Overwrite permissions for a message author
* message.channel.overwritePermissions(message.author, {
@@ -203,7 +203,7 @@ class GuildChannel extends Channel {
}
}
return this.client.rest.methods.setChannelOverwrite(this, payload, reason);
return this.client.rest.methods.setChannelOverwrite(this, payload, reason).then(() => this);
}
/**