【发布时间】:2019-06-29 11:26:31
【问题描述】:
我已经安装了 discord.py rewrite 并尝试使用 vscode 进行编码,但智能感知无法使用它。使用 numpy 或基本 python 模块时它工作得很好,但它不适用于 discord.py。
@client.event
async def on_message(message):
# we do not want the bot to reply to itself
if message.author == client.user:
return
message. # this shows no suggestions aside from other words in the code
【问题讨论】:
-
我是 stackoverflow 的新手,所以如果你要投反对票,请给我留言说明原因。谢谢!
-
如果你找到答案,请告诉我。
-
@AnchithAcharya 不幸的是,我从来没有找到过,因此我放弃了这个项目。如果您找到解决方案,也请告诉我。
-
我还没有找到解决方案,但是有一个有趣的观察。自动完成功能确实有效,只是并非无处不在。例如,当我键入消息时。它什么也没有显示,但如果我输入不和谐。或客户。它显示了很多建议。这些建议的描述似乎与 discord.py 文档中的描述完全相同。我是 python 新手,但知道 c/c++。我计划仅使用我对后者的了解,并在自动完成建议的帮助下制作一个机器人。但我想我现在必须求助于 youtube 教程。
标签: python visual-studio-code intellisense discord discord.py