【问题标题】:How to send message in discord api like this on python [duplicate]如何在python上像这样在discord api中发送消息[重复]
【发布时间】:2022-02-03 18:26:14
【问题描述】:

Example

如何在 discord api 中发送消息,例如使用 python 在照片上发送消息

【问题讨论】:

    标签: discord discord.py


    【解决方案1】:

    如果您想发送消息,请通过 await channel.send('Say hello!') 函数进行。如果要发送嵌入,您需要先创建它 (myEmbed = discord.Embed(title = "title",description= "description",color=0x000000)),然后使用 await channel.send(embed = myEmbed) 发送嵌入。 More in the Docs

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-05-03
      • 2020-08-31
      • 2021-06-06
      • 2020-07-06
      • 2020-08-16
      • 2020-12-23
      相关资源
      最近更新 更多