Comments (2)
await self.api.create_dms(guild_id=message.guild_id, user_id=message.author.id)之后会返回一个私信频道的guild id,因此你await self.api.post_dms(guild_id=message.guild_id, **data)这里的guild id不应该是message.guild_id,而是创建私信时返回的私信频道id
from botpy.
检查是否使用了正确的guild_id
from botpy.
Related Issues (20)
- 请问是否有文字子频道接受消息后主动发送私聊信息的例子? HOT 2
- 请求发行同步风格的SDK HOT 2
- 会支持v2 api吗?
- redeme文件引用图片失效了 HOT 1
- GroupMessage类输出的字符串信息无`group_openid`和`author` HOT 1
- 在客户端启动时报错 HOT 1
- 在客户端启动时报错 HOT 1
- 在客户端启动时报错 HOT 1
- content和mentions没有被@的用户的信息 HOT 1
- CentOS7.6 下部署QQ 机器人服务端程序,抛异常;然而在windows 10下运行良好。 HOT 2
- 富文件下载失败
- 数据类型错误 HOT 2
- 请求api超时怎么办 HOT 1
- 狗屁不通的错误提示 HOT 1
- 建议将Q群和频道的开发文档分开处理 HOT 2
- 发送群消息的封装有问题 HOT 1
- 如何制作点击后直接发送指令的按钮 HOT 1
- Q群机器人发送图片的接口是哪个 HOT 2
- 数据类型再次错误==>issues173
- keyboard类型错误
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from botpy.