From 7bc2e231cf4e8f1e2f0c45d77c57a28feb8cdb8c Mon Sep 17 00:00:00 2001 From: SpaceEEC Date: Tue, 12 Feb 2019 10:12:25 +0100 Subject: [PATCH] feat(Guild): add position to createChannel's implementation (#3058) --- src/client/rest/RESTMethods.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/client/rest/RESTMethods.js b/src/client/rest/RESTMethods.js index 4b3a7c285..0224337ac 100644 --- a/src/client/rest/RESTMethods.js +++ b/src/client/rest/RESTMethods.js @@ -261,7 +261,18 @@ class RESTMethods { } createChannel(guild, name, options) { - const { type, topic, nsfw, bitrate, userLimit, parent, permissionOverwrites, rateLimitPerUser, reason } = options; + const { + type, + topic, + nsfw, + bitrate, + userLimit, + parent, + permissionOverwrites, + position, + rateLimitPerUser, + reason, + } = options; return this.rest.makeRequest('post', Endpoints.Guild(guild).channels, true, { name, topic, @@ -271,6 +282,7 @@ class RESTMethods { user_limit: userLimit, parent_id: parent instanceof Channel ? parent.id : parent, permission_overwrites: resolvePermissions.call(this, permissionOverwrites, guild), + position, rate_limit_per_user: rateLimitPerUser, }, undefined,