【问题标题】:Delete embeded message without removing text message discord.py删除嵌入消息而不删除文本消息 discord.py
【发布时间】:2020-12-04 18:00:57
【问题描述】:

我在 discord.py 中有一个函数,!donate。该函数有一个指向我的捐赠页面的链接,但是使用页面标题和我不想要的其他信息创建了一个嵌入。有什么方法可以在不删除短信的情况下删除嵌入?

@bot.command()
async def donate(ctx):
   await ctx.channel.send(ctx.author.mention + ", if you want to donate to the developer to contribute to the development of the bot, you can do so by visiting this link:\n\nhttps://donatebot.io/checkout/783063012163846194?buyer=777338793803513886\n\nAll donations are highly appreciated.")

【问题讨论】:

  • 把你的链接放在之间,比如<https://donatebot.io/checkout/783063012163846194?buyer=777338793803513886>,它不会创建嵌入

标签: python python-3.x discord discord.py


【解决方案1】:

可以,在<>之间添加链接:

@bot.command()
async def donate(ctx):
   await ctx.channel.send(ctx.author.mention + ", if you want to donate to the developer to contribute to the development of the bot, you can do so by visiting this link:\n\n<https://donatebot.io/checkout/783063012163846194?buyer=777338793803513886>\n\nAll donations are highly appreciated.")

【讨论】:

  • 谢谢!真的很有帮助
猜你喜欢
  • 1970-01-01
  • 2018-06-29
  • 1970-01-01
  • 2021-09-08
  • 2021-12-16
  • 2021-06-12
  • 1970-01-01
  • 1970-01-01
  • 2019-05-07
相关资源
最近更新 更多