Skip to content

Commit

Permalink
api changes
Browse files Browse the repository at this point in the history
v1.1.2
GuildChannel changes according to discordjs/discord.js@6e5f088
  • Loading branch information
Jisagi committed Oct 15, 2018
1 parent 49c80c3 commit 3feca70
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions objects/creator.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ class Creator {
});
let options = {
type: 'category',
overwrites: overwrites,
permissionOverwrites: overwrites,
};

let promise = newGuild.channels.create(category.name, options).then(createdCategory => {
Expand Down Expand Up @@ -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),
Expand Down Expand Up @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit 3feca70

Please sign in to comment.