Simplified image resolving and used an options object when creating webhooks (#1843)

This commit is contained in:
SpaceEEC
2017-08-28 00:11:19 +02:00
committed by Crawl
parent 258fc4ecf3
commit c4fecf6609
4 changed files with 14 additions and 18 deletions

View File

@@ -341,10 +341,10 @@ class ClientUser extends User {
return undefined;
}, reject)
);
} else {
return this.client.resolver.resolveFile(icon)
.then(data => this.createGuild(name, { region, icon: this.client.resolver.resolveBase64(data) || null }));
}
return this.client.resolver.resolveImage(icon)
.then(data => this.createGuild(name, { region, icon: data || null }));
}
/**