@client.command()
async def button(ctx):
await ctx.send(
"Hello, World!",
components = [
Button(label = "WOW button!", custom_id = "button1")
]
)
interaction = await client.wait_for("button_click")
await interaction.send(content = "Button clicked!")