Made (hopefully) all url related methods accept an options objects (#1617)

and removed a leftover in User#avatarURL
This commit is contained in:
SpaceEEC
2017-07-04 00:08:24 +02:00
committed by Crawl
parent ee3a2415e4
commit 3fa880df5b
3 changed files with 14 additions and 22 deletions

View File

@@ -113,10 +113,6 @@ class User {
*/
avatarURL({ format, size } = {}) {
if (!this.avatar) return null;
if (typeof format === 'number') {
size = format;
format = 'default';
}
return Constants.Endpoints.CDN(this.client.options.http.cdn).Avatar(this.id, this.avatar, format, size);
}