Réponse Discord Bot au message privé Python

@bot.event
async def on_message(message):
    if isinstance(message.channel, discord.channel.DMChannel) and message.author != bot.user:
        await message.channel.send('This is a DM')
obvThinky