当它从Webhook / bot / embed中获取消息内容时,总是会发送一个空白行/空白,我想知道我的不和谐bot是否有可能看到这些webhook / bot / embed的内容
import discord
client = discord.Client()
@client.event
async def on_ready():
print('Logged in as {0.user}'.format(client))
@client.event
async def on_message(message):
if message.author.bot == True:
print(message.content)
答案 0 :(得分:1)
if len(message.embeds) > 0:
embed = message.embeds[0] #you can do embed.title to get the title and other details of the embed now
if message.author.bot and message.author != client.user:
msg = message.content
if message.webhook_id:
msg = message.content