Ответ бота Discord на личное сообщение 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