You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
`@bot.command(name="test")
![Uploading image.png…]()
async def test(ctx: commands.Context):
markdown = qq.Markdown(template_id=65, custom_template_id=None, content=None)
markdown.with_keyboard()
markdown.set_attribute(key="key", value="value")
channel = bot.get_channel(ctx.channel.id)
await channel.send(mention_author=ctx.author,
markdown=markdown,
delete_after=10, msg_id='MESSAGE_CREATE', reference=ctx.message)
想通过这段代码send一个含有markdown的消息,请问问题出现在哪里,或者可以麻烦提供一个正确发送markdown的示例吗,非常感谢。
Beta Was this translation helpful? Give feedback.
All reactions