Skip to content

Commit

Permalink
Update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
hypergonial committed Dec 31, 2023
1 parent c33e8ab commit beb023a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/gateway/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
@client.include
@arc.slash_command(name="hi", description="Say hi to someone!")
async def hi_slash(
ctx: arc.Context[arc.GatewayClient],
ctx: arc.GatewayContext,
user: arc.Option[hikari.User, arc.UserParams(description="The user to say hi to.")]
) -> None:
await ctx.respond(f"Hey {user.mention}!")
Expand Down
2 changes: 1 addition & 1 deletion examples/rest/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
@client.include
@arc.slash_command(name="hi", description="Say hi to someone!")
async def hi_slash(
ctx: arc.Context[arc.RESTClient],
ctx: arc.RESTContext,
user: arc.Option[hikari.User, arc.UserParams(description="The user to say hi to.")]
) -> None:
await ctx.respond(f"Hey {user.mention}!")
Expand Down

0 comments on commit beb023a

Please sign in to comment.