diff --git a/src/client/rest/RESTMethods.js b/src/client/rest/RESTMethods.js index b80b463a7..4b3a7c285 100644 --- a/src/client/rest/RESTMethods.js +++ b/src/client/rest/RESTMethods.js @@ -260,7 +260,8 @@ class RESTMethods { }); } - createChannel(guild, name, { type, topic, nsfw, bitrate, userLimit, parent, permissionOverwrites, reason }) { + createChannel(guild, name, options) { + const { type, topic, nsfw, bitrate, userLimit, parent, permissionOverwrites, rateLimitPerUser, reason } = options; return this.rest.makeRequest('post', Endpoints.Guild(guild).channels, true, { name, topic, @@ -270,6 +271,7 @@ class RESTMethods { user_limit: userLimit, parent_id: parent instanceof Channel ? parent.id : parent, permission_overwrites: resolvePermissions.call(this, permissionOverwrites, guild), + rate_limit_per_user: rateLimitPerUser, }, undefined, reason).then(data => this.client.actions.ChannelCreate.handle(data).channel);