Прочитать встроенное сообщение - PullRequest
0 голосов
/ 16 июня 2020

Как я могу прочитать встроенные сообщения Discord с помощью python? Он не подбирает ключевые слова b c сообщения встроены.

import discord
from discord.ext import commands
import os

client = discord.Client()

keywords = ['yeezy 500', 'yeezy 350', 'yeezy 700', 'jordan og', 'jordan 1 low', 'aj 1 low', 'jordan 1 mid', 'jordan 1 high', 'nike x cactus jack']
monitor_channels = [channelid, channelid]

async def on_ready():
    print('Bot is ready')

@client.event
async def on_message(message):
    channel = message.channel
    for keyword in keywords:
        if keyword.lower() in message.content.lower() and message.channel.id in monitor_channels:
            await channel.send('<@&719156315045363719>')
            break

client.run(os.environ['TOKEN'])```
...