Comments (4)
groupConfig/memberInfo
等 API 是有的,可以在 https://www.yunyoujun.cn/mirai-ts/ 进行搜索。
https://www.yunyoujun.cn/mirai-ts/classes/MiraiApiHttp.html#groupConfig
botProfile
应该是新增的 API,将会尽快添加。
from mirai-ts.
确实,没有找到如何获取bot资料。但可以用axios
直接发请求临时用一用。
interface Profile {
nickname: string;
email: string;
age: number;
level: number;
sign: string;
sex: string;
}
async function main(): Promise<void> {
const profile = (await mirai.axios.get("/botProfile")).data as Profile;
}
from mirai-ts.
确实,没有找到如何获取bot资料。但可以用
axios
直接发请求临时用一用。interface Profile { nickname: string; email: string; age: number; level: number; sign: string; sex: string; } async function main(): Promise<void> { const profile = (await mirai.axios.get("/botProfile")).data as Profile; }
嗯,我了解。主要是我看了下少了好几个接口的定义,估计是版本更新的缘故
from mirai-ts.
Release in v2.1.1
.
我将关闭该 Issue,如果仍然有问题,欢迎随时反馈。
from mirai-ts.
Related Issues (20)
- ts-node 报错 HOT 4
- MessageChain 无法正确发送 HOT 1
- src/mirai-api-http/resp.ts 中注释有误 HOT 1
- mirai-api-http 文档链接指向错误 HOT 2
- `utils/check.ts#match` 函数的实现问题 HOT 2
- 能否发送base64的图片 HOT 2
- "File" message lost in FriendMessage&GroupMessage HOT 3
- V2.0 MiraiApiHttpSetting interface HOT 2
- Member interface broken in the given api HOT 13
- 读取mirai-api-http配置时报错 HOT 3
- 建议使用 private 修饰符修饰部分字段 HOT 2
- bot mirai.api.sendGroupMessage 能不能加个代理配置。。。 HOT 2
- export more types HOT 1
- Why “TypeError: Mirai is not a constructor”? HOT 3
- mirai-api-http 更新之后,messageFromId 方法需要传额外的参数,大佬能更新一下版本吗? HOT 6
- 请教一下如何撤回msg.reply回复的消息 HOT 2
- mirai-api-http 更新了字段导致 messageFromId 调用报错,麻烦大佬更新一下~
- MessageType怎么引用? HOT 1
- 部分接口的请求未传递参数
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 mirai-ts.