Skip to content

Commit

Permalink
fix: types error
Browse files Browse the repository at this point in the history
  • Loading branch information
RedBeanN committed Sep 29, 2021
1 parent cefbcc2 commit d60a420
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ class NodeMirai {
/**
* @method NodeMirai#sendFriendMessage
* @description 发送好友消息
* @param { MessageChain[] } messageChain MessageChain 数组
* @param { string | MessageChain[] } messageChain MessageChain 数组
* @param { number } qq 发送对象的 qq 号
* @returns { Promise<httpApiResponse> }
*/
Expand All @@ -255,7 +255,7 @@ class NodeMirai {
/**
* @method NodeMirai#sendGroupMessage
* @description 发送群组消息
* @param { MessageChain[] } messageChain MessageChain 数组
* @param { string | MessageChain[] } messageChain MessageChain 数组
* @param { number } group 发送群组的群号
* @returns { Promise<httpApiResponse> }
*/
Expand All @@ -270,7 +270,7 @@ class NodeMirai {
/**
* @method NodeMirai#sendTempMessage
* @description 发送临时消息
* @param { MessageChain[] } messageChain MessageChain 数组
* @param { string | MessageChain[] } messageChain MessageChain 数组
* @param { number } qq 临时消息发送对象 QQ 号
* @param { number } group 所在群号
* @returns { Promise<httpApiResponse> }
Expand Down Expand Up @@ -368,10 +368,10 @@ class NodeMirai {
* @method NodeMirai#uploadImage
* @param { string | Buffer | ReadStream } url 图片所在路径
* @param { message | MessageTarget } target 发送目标对象
* @returns {{
* @returns {Promise<{
* imageId: string,
* url: string
* }}
* }>}
*/
async uploadImage (url, target) {
let type;
Expand Down Expand Up @@ -400,10 +400,10 @@ class NodeMirai {
/**
* @method NodeMirai#uploadVoice
* @param { string | Buffer | ReadStream } url 声音所在路径
* @returns {{
* @returns {Promise<{
* voiceId: string,
* url: string
* }}
* }>}
*/
async uploadVoice (url) {
return uploadVoice({
Expand Down

0 comments on commit d60a420

Please sign in to comment.