onebots
Version:
基于icqq的多例oneBot实现
34 lines (33 loc) • 976 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.FriendAction = void 0;
class FriendAction {
getUserInfo(user_id) {
return this.adapter.call(this.oneBot.uin, "V12", "getUserInfo", [user_id]);
}
getFriendList() {
return this.adapter.call(this.oneBot.uin, "V12", "getFriendList");
}
/**
* 发送私聊消息
* @param user_id {number} 用户id
* @param message {V12.Sendable} 消息
* @param source {string} 引用id
*/
async sendPrivateMsg(user_id, message, source) {
return this.adapter.call(this.oneBot.uin, "V12", "sendPrivateMessage", [
user_id,
message,
source,
]);
}
/**
* 为指定用户点赞
* @param user_id {number} 用户id
* @param times 点赞次数
*/
async sendUserLike(user_id, times) {
throw new Error("不支持的API");
}
}
exports.FriendAction = FriendAction;