mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-08 04:38:42 +00:00
Keep comments consistent with other before/after comments
This commit is contained in:
parent
8ced1143e3
commit
c28c3f4440
@ -851,12 +851,11 @@ Therefore, ``Embed.Empty`` has been removed in favour of ``None``.
|
|||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
# Before
|
# before
|
||||||
|
|
||||||
embed = discord.Embed(title='foo')
|
embed = discord.Embed(title='foo')
|
||||||
embed.title = discord.Embed.Empty
|
embed.title = discord.Embed.Empty
|
||||||
|
|
||||||
# After
|
# after
|
||||||
embed = discord.Embed(title='foo')
|
embed = discord.Embed(title='foo')
|
||||||
embed.title = None
|
embed.title = None
|
||||||
|
|
||||||
@ -1186,7 +1185,7 @@ Quick example of an extension setup function:
|
|||||||
def setup(bot):
|
def setup(bot):
|
||||||
bot.add_cog(MyCog(bot))
|
bot.add_cog(MyCog(bot))
|
||||||
|
|
||||||
#after
|
# after
|
||||||
async def setup(bot):
|
async def setup(bot):
|
||||||
await bot.add_cog(MyCog(bot))
|
await bot.add_cog(MyCog(bot))
|
||||||
|
|
||||||
@ -1194,10 +1193,10 @@ Quick example of loading an extension:
|
|||||||
|
|
||||||
.. code:: python
|
.. code:: python
|
||||||
|
|
||||||
#before
|
# before
|
||||||
bot.load_extension('my_extension')
|
bot.load_extension('my_extension')
|
||||||
|
|
||||||
#after using setup_hook
|
# after using setup_hook
|
||||||
class MyBot(commands.Bot):
|
class MyBot(commands.Bot):
|
||||||
async def setup_hook(self):
|
async def setup_hook(self):
|
||||||
await self.load_extension('my_extension')
|
await self.load_extension('my_extension')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user