Migration#
As I noticed during testing, and making changes, the move to v2.0.0 from v1.4.0 can be difficult, but this guide is here to make it a whole lot easier
This guide intends to follow The Zen of Python,’s quote in line 7,
Readability counts.
So all of the names will be shortened, non-captialized, and simple to remember. Which is 90% of the reason I’m deprecating a lot in version 2.0.0, to make it more readable
So, instead of
We can use
I highly suggest using the ctrl + F
shortcut, to find the old names and replace it with the new names
The following list shows what classes and methods are replaced with what name
AuthUrl
–>auth
discordApi
–>discord
makeUrl
–>url
accessToken
–>token
User
–>user
get_current_user
–>fetch
get_user_guilds
–>guilds
get_guild
–>fetch
Special Cases#
There is one thing I should metion before I close this out, the get_guild
method that got changed to fetch
, got moved to a new class called guild
, so look for the user
in those statements and replace them with guild