Skip to content

Commit 4b3232d

Browse files

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ async def buttons(ctx: commands.Context):
3232
msg = await ctx.send(embed=an_embed, components=components)
3333

3434
def _check(i: discord.Interaction, b: discord.ButtonClick):
35-
return i.message == msg and i.author ctx.author
35+
return i.message == msg and i.author == ctx.author
3636

3737
interaction, button = await client.wait_for('button_click', check=_check)
3838
button_id = button.custom_id

0 commit comments

Comments
 (0)