While trying to connect to the Discord servers using this API wrapper, the connection could not be established.
import discord
class MyClient(discord.Client):
async def on_ready(self):
print('Logged on as', self.user)
client = MyClient()
client.run('token')
This code with the token linked to the account that should be used gives the following error message: discord.errors.LoginFailure: Improper token has been passed.
Doing some more research also showed that this library is mostly useful for creating bots and not for creating self-bots. "Discord.py was created to work on bot accounts not user accounts." This means that this is not the best choice for this kind of job.
Still maintained? → Yes
Open-source library? → Yes
This is the library that is currently used in this project.
Still maintained? → Yes
Open-source library? → Yes
Not currently used in this project, but one of the most used libraries out there.
Still maintained? → Yes
Open-source library? → Yes