You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Previously, on Pull Request #656, I added a property to get the Application's icon URL with icon_url. However, I realized that I understood the wrong way between how Application icon and user icon works. My bad first.
Next pull request will be for fixing this specific problem.
List the steps.
Remove all picture/avatar on the Application.
Get bot.me.icon_url.
Print out the Application's picture URL.
What you expected.
I was expecting to see the returned URL.
What you saw.
I got this from the terminal:
Task exception was never retrieved
future: <Task finished name='Task-16' coro=<test() done, defined at .\Articuno\bot.py:30> exception=AttributeError("'Application' object has no attribute 'discriminator'")>
Traceback (most recent call last):
File ".\Articuno\bot.py", line 41, in test
text=f'{bot.me.icon_url}',
File ".\Articuno\venv\lib\site-packages\interactions\api\models\team.py", line 134, in icon_url
url += f"embed/avatars/{int(self.discriminator) % 5}.png"
AttributeError: 'Application' object has no attribute 'discriminator'