Skip to content

Commit 7bc2e23

Browse files
authored
feat(Guild): add position to createChannel's implementation (#3058)
1 parent 890b1be commit 7bc2e23

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/client/rest/RESTMethods.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,18 @@ class RESTMethods {
261261
}
262262

263263
createChannel(guild, name, options) {
264-
const { type, topic, nsfw, bitrate, userLimit, parent, permissionOverwrites, rateLimitPerUser, reason } = options;
264+
const {
265+
type,
266+
topic,
267+
nsfw,
268+
bitrate,
269+
userLimit,
270+
parent,
271+
permissionOverwrites,
272+
position,
273+
rateLimitPerUser,
274+
reason,
275+
} = options;
265276
return this.rest.makeRequest('post', Endpoints.Guild(guild).channels, true, {
266277
name,
267278
topic,
@@ -271,6 +282,7 @@ class RESTMethods {
271282
user_limit: userLimit,
272283
parent_id: parent instanceof Channel ? parent.id : parent,
273284
permission_overwrites: resolvePermissions.call(this, permissionOverwrites, guild),
285+
position,
274286
rate_limit_per_user: rateLimitPerUser,
275287
},
276288
undefined,

0 commit comments

Comments
 (0)