Skip to content

Commit 38fe68c

Browse files
authored
Merge pull request #213 from CheryX/patch-1
Simple fix in components
2 parents 7b0215a + 92fff99 commit 38fe68c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/components.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Next we'll go over the alternative, a global event handler. This works just the
6565
6666
@bot.event
6767
async def on_component(ctx: ComponentContext):
68-
await button_ctx.edit_origin(content="You pressed a button!")
68+
await ctx.edit_origin(content="You pressed a button!")
6969
7070
But [writer], I dont want to edit the message
7171
*********************************************

0 commit comments

Comments
 (0)