Im making a Python discord bot. I have given my bot a custom status, and it works. However when i try to use this code:
await client.change_presence(activity=discord.BaseActivity(type=discord.HypeSquadHouse.bravery))
to give it a hype squad badge, I get this error:
Ignoring exception in on_ready
Traceback (most recent call last):
File "C:\Python\Python38\lib\site-packages\discord\client.py", line 312, in _run_event
await coro(*args, **kwargs)
File "C:\Users\max\OneDrive\Desktop\Code\Python\BigBrian\BigBrian_3.0\Brian3.py", line 27, in on_ready
await client.change_presence(activity=discord.BaseActivity(type=discord.HypeSquadHouse.bravery))
File "C:\Python\Python38\lib\site-packages\discord\client.py", line 1001, in change_presence
await self.ws.change_presence(activity=activity, status=status, afk=afk)
File "C:\Python\Python38\lib\site-packages\discord\gateway.py", line 544, in change_presence
activity = activity.to_dict()
AttributeError: 'BaseActivity' object has no attribute 'to_dict'
I have looked everywhere, but cant find any mention of Hypesquad in dsicord.py at all. I know that is real as its in the documentation. https://discordpy.readthedocs.io/en/latest/api.html#discord.Profile.hypesquad https://discordpy.readthedocs.io/en/latest/api.html#discord.Profile.hypesquad