Skip to content

Commit

Permalink
fix: Position new channel below template
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiTenno committed Oct 29, 2018
1 parent 4111ebc commit 811258d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/eventHandlers/DynamicVoiceHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ const clone = async (template, settings) => {
const newChannel = await guild.createChannel(name, template.type, perms);
await newChannel.setParent(template.parentID, 'Moving channel for Dynamic channel');
await newChannel.setUserLimit(template.userLimit, 'Channel setup for Dynamic Channel');
await newChannel.setPosition(template.position + 1);
return newChannel;
};

Expand Down

0 comments on commit 811258d

Please sign in to comment.