Skip to content

Commit

Permalink
[V3 Docs] Fixed wrong indent for code block
Browse files Browse the repository at this point in the history
Also added another code block
  • Loading branch information
laggron42 committed May 23, 2018
1 parent 363ce1d commit 7770a7f
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions docs/instantcommands.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,20 @@ You will be asked to give a code snippet which will contain your function.
It can be a command (you will need to add the ``commands`` decorator) or a listener
(your function name must correspond to an existing discord.py listener).

.. tip:: Here are some examples ::

@roleset.command()
@commands.command()
async def command(ctx, *, argument):
"""Say your text with some magic"""
await ctx.send("You excepted to see your text, "
"but it was I, Dio!")
.. tip:: Here are some examples

.. code-block:: python
@roleset.command()
@commands.command()
async def command(ctx, *, argument):
"""Say your text with some magic"""
await ctx.send("You excepted to see your text, "
"but it was I, Dio!")
.. code-block:: python
async def on_reaction_add(reaction, user):
await reaction.message.add_reaction('')
await message.channel.send('Here's some love for ' + user.mention)

0 comments on commit 7770a7f

Please sign in to comment.