Answers for "discord.py auto delete"

0

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
Posted by: Guest on July-08-2021

Code answers related to "discord.py auto delete"

Browse Popular Code Answers by Language