You could use the split
method to separate "estimate" and "id" like so:
if ctx.channel.name.startswith('order') or ctx.channel.name.startswith('estimate'):
cat, id = ctx.channel.name.split('-')
category = discord.utils.get(ctx.guild.categories, name=config["confirm_category"])
await ctx.channel.edit(name=f"order-{id}", category=category)
await ctx.message.delete()
await ctx.send(embed=emb)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…