discord.py auto delete
@client.event
async def on_message(msg):
try:
if msg.guild.id == Your guild ID:
if msg.channel.id == Your channel id:
await asyncio.sleep(30)
await msg.delete()
else:
pass
else:
pass
except:
pass