Discord 嵌入消息中不带哈希标记的消息作者名称
我想要我的机器人当有人说某事时,机器人会说作者的名字,而不带标签,也不带消息的内容 但是这个embedVar=discord.Embed(title='The',(message.author),'posted',description=message.content,color=0x0000FF)不起作用 你能帮我吗Discord 嵌入消息中不带哈希标记的消息作者名称,discord,bots,Discord,Bots,我想要我的机器人当有人说某事时,机器人会说作者的名字,而不带标签,也不带消息的内容 但是这个embedVar=discord.Embed(title='The',(message.author),'posted',description=message.content,color=0x0000FF)不起作用 你能帮我吗 @client.event async def on_message(message): if str(message.channel) in ['general']:
@client.event
async def on_message(message):
if str(message.channel) in ['general']:
if not message.author == client.user:
embedVar = discord.Embed(title='The', (message.author), 'posted', description=message.content, color=0x0000FF)
embedVar.set_author(name=message.author)
embedVar.set_footer(text='Facebook-')
await message.delete()
await message.channel.send(embed=embedVar)```
你可以做:
async def on_message(message):
if not message.author == client.user:
await message.channel.send(message.content)
await client.delete_message(message)