diff options
| author | NCPlayz <[email protected]> | 2019-03-14 12:38:02 +0000 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2019-03-19 09:00:18 -0400 |
| commit | f507f508a2aa56305ac90bd222f49af9cf47c49b (patch) | |
| tree | a9ba58dde45156651f76196c06514a622e7fa6a8 /discord/ext | |
| parent | Organise documentation (diff) | |
| download | discord.py-f507f508a2aa56305ac90bd222f49af9cf47c49b.tar.xz discord.py-f507f508a2aa56305ac90bd222f49af9cf47c49b.zip | |
Expose Metadata
Added access to:
* `/users/@me/guilds`
* `/guilds/{guild_id}`
* `/guilds/{guild_id}/members/{member_id}`
BREAKING CHANGE:
* `get_user_info` -> `fetch_user_info` to match naming scheme.
Remove useless note
Remove `reverse` and corresponding documentation
Update documentation to reflect #1988
Rename `get_` HTTP functions to `fetch_`
Breaking Changes:
* `get_message` -> `fetch_message`
* `get_invite` -> `fetch_invite`
* `get_user_profile` -> `fetch_user_profile`
* `get_webhook_info` -> `fetch_webhook`
* `get_ban` -> `fetch_ban`
Fix InviteConverter, update migrating.rst
Rename get_message to fetch_message
Diffstat (limited to 'discord/ext')
| -rw-r--r-- | discord/ext/commands/converter.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/ext/commands/converter.py b/discord/ext/commands/converter.py index 9fc6cf6d..81d3a00e 100644 --- a/discord/ext/commands/converter.py +++ b/discord/ext/commands/converter.py @@ -336,11 +336,11 @@ class GameConverter(Converter): class InviteConverter(Converter): """Converts to a :class:`Invite`. - This is done via an HTTP request using :meth:`.Bot.get_invite`. + This is done via an HTTP request using :meth:`.Bot.fetch_invite`. """ async def convert(self, ctx, argument): try: - invite = await ctx.bot.get_invite(argument) + invite = await ctx.bot.fetch_invite(argument) return invite except Exception as exc: raise BadArgument('Invite is invalid or expired') from exc |