This is the code I am using. This works, but the rest of the commands do not work. How can I make it so it does not affect other commands?
@client.event
async def on_message(message):
if message.content.startswith('!'):
await message.delete()