From 4a0839f7ecad9fcf4c73c52836723046029abff9 Mon Sep 17 00:00:00 2001 From: One-Nub <38899321+One-Nub@users.noreply.github.com> Date: Sat, 29 Jun 2019 18:00:07 -0500 Subject: [PATCH] Revert force_fmt --- disco/types/user.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/disco/types/user.py b/disco/types/user.py index dce610d..bd1540d 100644 --- a/disco/types/user.py +++ b/disco/types/user.py @@ -22,17 +22,11 @@ class User(SlottedModel, with_equality('id'), with_hash('id')): presence = Field(None) - def get_avatar_url(self, fmt=None, force_fmt=True, size=1024): + def get_avatar_url(self, fmt=None, size=1024): if not self.avatar: return 'https://cdn.discordapp.com/embed/avatars/{}.png'.format(self.default_avatar.value) if fmt is not None: - if force_fmt is False: - if self.avatar.startswith('a_'): - return 'https://cdn.discordapp.com/avatars/{}/{}.gif?size={}'.format(self.id, self.avatar, size) - else: - return 'https://cdn.discordapp.com/avatars/{}/{}.{}?size={}'.format(self.id, self.avatar, fmt, size) - else: - return 'https://cdn.discordapp.com/avatars/{}/{}.{}?size={}'.format(self.id, self.avatar, fmt, size) + return 'https://cdn.discordapp.com/avatars/{}/{}.{}?size={}'.format(self.id, self.avatar, fmt, size) if self.avatar.startswith('a_'): return 'https://cdn.discordapp.com/avatars/{}/{}.gif?size={}'.format(self.id, self.avatar, size) else: