I first used ctx.edit_origin for the message
and then I try to use ctx.send and It told me has already acknowledge
this is my code
@listen()
async def on_component(self, event: Component, **kwargs):
ctx = event.ctx
match ctx.custom_id:
case "Fast" | "Relax":
response = PostAgent.Fast() if ctx.custom_id == "Fast" else PostAgent.Relax()
if response[0]:
BotSettings["BotInit"]["Speed"] = ctx.custom_id
await ctx.edit_origin(components = ButtonClick(ctx, Switch=["BotInit", "Speed"]))
await ctx.send('Mode Change:{}'.format(ctx.custom_id))
else:
await ctx.send(response[1])
I can use it in i.py V4 and now in V5
and can't find help in docs
If something I don't find,Plz tell a docs url thanks