diff options
| author | Rapptz <[email protected]> | 2015-12-17 16:58:01 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2015-12-17 16:58:01 -0500 |
| commit | 00c9ac59c14f3b8eba5381b4cae78b305cafd5a7 (patch) | |
| tree | 63ae32d4f82ea98c5d20d14f106dfb93b3040452 | |
| parent | Add migrating guide for migrating to v0.10.0. (diff) | |
| download | discord.py-00c9ac59c14f3b8eba5381b4cae78b305cafd5a7.tar.xz discord.py-00c9ac59c14f3b8eba5381b4cae78b305cafd5a7.zip | |
Fix consistency issue with migrating page.
| -rw-r--r-- | docs/migrating.rst | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/docs/migrating.rst b/docs/migrating.rst index 9d447a2a..2758aec9 100644 --- a/docs/migrating.rst +++ b/docs/migrating.rst @@ -59,7 +59,7 @@ for easier registration. For example: Be aware however, that this is still a coroutine and your other functions that are coroutines must -be decorated with `` @asyncio.coroutine`` or be ``async def``. +be decorated with ``@asyncio.coroutine`` or be ``async def``. .. _migrating_event_changes: @@ -164,25 +164,25 @@ The following functions were changed into properties: +----------------------------------------+--------------------------------------+ | Before | After | +----------------------------------------+--------------------------------------+ -| ``user.avatar_url()`` | :attr:`User.avatar_url` | +| ``User.avatar_url()`` | :attr:`User.avatar_url` | +----------------------------------------+--------------------------------------+ -| ``user.mention()`` | :attr:`User.mention` | +| ``User.mention()`` | :attr:`User.mention` | +----------------------------------------+--------------------------------------+ -| ``channel.mention()`` | :attr:`Channel.mention` | +| ``Channel.mention()`` | :attr:`Channel.mention` | +----------------------------------------+--------------------------------------+ -| ``channel.is_default_channel()`` | :attr:`Channel.is_default` | +| ``Channel.is_default_channel()`` | :attr:`Channel.is_default` | +----------------------------------------+--------------------------------------+ -| ``role.is_everyone()`` | :attr:`Role.is_everyone` | +| ``Role.is_everyone()`` | :attr:`Role.is_everyone` | +----------------------------------------+--------------------------------------+ -| ``server.get_default_role()`` | :attr:`Server.default_role` | +| ``Server.get_default_role()`` | :attr:`Server.default_role` | +----------------------------------------+--------------------------------------+ -| ``server.icon_url()`` | :attr:`Server.icon_url` | +| ``Server.icon_url()`` | :attr:`Server.icon_url` | +----------------------------------------+--------------------------------------+ -| ``server.get_default_channel()`` | :attr:`Server.default_channel` | +| ``Server.get_default_channel()`` | :attr:`Server.default_channel` | +----------------------------------------+--------------------------------------+ -| ``message.get_raw_mentions()`` | :attr:`Message.raw_mentions` | +| ``Message.get_raw_mentions()`` | :attr:`Message.raw_mentions` | +----------------------------------------+--------------------------------------+ -| ``message.get_raw_channel_mentions()`` | :attr:`Message.raw_channel_mentions` | +| ``Message.get_raw_channel_mentions()`` | :attr:`Message.raw_channel_mentions` | +----------------------------------------+--------------------------------------+ .. _migrating-running: |