From 3feca70af162d0ddc82abf8c7522d2eb3dacf8ca Mon Sep 17 00:00:00 2001 From: Jisagi Date: Mon, 15 Oct 2018 12:18:40 +0200 Subject: [PATCH] api changes v1.1.2 GuildChannel changes according to https://github.com/discordjs/discord.js/commit/6e5f088e447548f0b4ef7d16680b877e14bc93aa --- objects/creator.js | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/objects/creator.js b/objects/creator.js index 4d792ba..c87c0ca 100644 --- a/objects/creator.js +++ b/objects/creator.js @@ -174,7 +174,7 @@ class Creator { }); let options = { type: 'category', - overwrites: overwrites, + permissionOverwrites: overwrites, }; let promise = newGuild.channels.create(category.name, options).then(createdCategory => { @@ -217,7 +217,7 @@ class Creator { options.parent = guildData.references.categories.get(textChannel.parentCat).new.id; } if (!textChannel.permLocked) { - options.overwrites = textChannel.permOverwrites.map(permOver => { + options.permissionOverwrites = textChannel.permOverwrites.map(permOver => { return { id: guildData.references.roles.get(permOver.id).new.id, allow: new Permissions(permOver.allowed), @@ -271,7 +271,7 @@ class Creator { options.parent = guildData.references.categories.get(voiceChannel.parentCat).new.id; } if (!voiceChannel.permLocked) { - options.overwrites = voiceChannel.permOverwrites.map(permOver => { + options.permissionOverwrites = voiceChannel.permOverwrites.map(permOver => { return { id: guildData.references.roles.get(permOver.id).new.id, allow: new Permissions(permOver.allowed), diff --git a/package.json b/package.json index 0f8b92a..3322b1e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "guildcopy", - "version": "1.1.1", + "version": "1.1.2", "description": "A tool to copy a discord guild", "main": "copy.js", "scripts": {