Skip to content

Commit

Permalink
Change ctx.send to ctx.respond in the README (Pycord-Development#197
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Grace-codes authored Sep 15, 2021
1 parent 2858bd1 commit db9aa7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ Quick Example
@bot.slash_command()
async def hello(ctx, name: str = None):
name = name or ctx.author.name
await ctx.send(f"Hello {name}!")
await ctx.respond(f"Hello {name}!")
@bot.user_command(name="Say Hello")
async def hi(ctx, user):
await ctx.send(f"{ctx.author.mention} says hello to {user.name}!")
await ctx.respond(f"{ctx.author.mention} says hello to {user.name}!")
bot.run("token")
Expand Down

0 comments on commit db9aa7c

Please sign in to comment.