theres no error after this, but why wouldnt this work even in the first place?
@bot.slash_command()
async def gametimet(ctx):
button1 = Button(label="Accept", style=discord.ButtonStyle.green)
async def button_callback(interaction):
button1.disabled = True
button1.callback = button_callback
view = View()
view.add_item(button1)
await ctx.respond('hi', view=view)