mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 16:43:31 +01:00
Made (hopefully) all url related methods accept an options objects (#1617)
and removed a leftover in User#avatarURL
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user