Home > OS >  How to tell if a button hasn't been pressed after a certain amount of time in pycord
How to tell if a button hasn't been pressed after a certain amount of time in pycord

Time:12-27

button = Button(style = discord.ButtonStyle.green, emoji = "◀️", custom_id = "button1")

view = View()
view.add_item(button)

async def button_callback(interaction):
    await message.edit(content="**response 1**")
  
button.callback = button_callback

await message.edit(content="⠀⠀           
  • Related