mirai-js 2.4.0 → 2.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -115,8 +115,8 @@ export {
115
115
  // 图片 id 语音 id 消息 id
116
116
  ImageId, VoiceId, MessageId,
117
117
 
118
- // 事件类型 群成员权限
119
- EventType, GroupPermission,
118
+ // 事件类型 群成员权限 性别
119
+ EventType, GroupPermission, SEX,
120
120
 
121
121
  // 消息处理器
122
122
  Processor,
@@ -203,7 +203,7 @@ export class Bot implements BotConfigGetable {
203
203
  * @param group 必选,群号
204
204
  * @param content 必选,公告内容
205
205
  */
206
- async publishAnno({ group, content, pinned }: Bot.PublishAnnoOptions): Promise<void>;
206
+ publishAnno({ group, content, pinned }: Bot.PublishAnnoOptions): Promise<void>;
207
207
 
208
208
  /**
209
209
  * @description 删除群公告
@@ -211,7 +211,7 @@ export class Bot implements BotConfigGetable {
211
211
  * @param {string} fid 必选,公告 id
212
212
  * @reaturns {void}
213
213
  */
214
- async deleteAnno({ group, fid }: Bot.DeleteAnnoOptions): Promise<void>;
214
+ deleteAnno({ group, fid }: Bot.DeleteAnnoOptions): Promise<void>;
215
215
 
216
216
  /**
217
217
  * @description 禁言群成员
@@ -439,7 +439,7 @@ declare namespace Bot {
439
439
  }
440
440
 
441
441
  interface GetAnnoIterOptions {
442
- gourp: number;
442
+ group: number;
443
443
  }
444
444
 
445
445
  interface PublishAnnoOptions {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mirai-js",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
4
4
  "description": "QQ robot development framework based on Mirai-api-http.",
5
5
  "main": "dist/node/index.js",
6
6
  "scripts": {
package/src/BaseType.d.ts CHANGED
@@ -115,8 +115,8 @@ export {
115
115
  // 图片 id 语音 id 消息 id
116
116
  ImageId, VoiceId, MessageId,
117
117
 
118
- // 事件类型 群成员权限
119
- EventType, GroupPermission,
118
+ // 事件类型 群成员权限 性别
119
+ EventType, GroupPermission, SEX,
120
120
 
121
121
  // 消息处理器
122
122
  Processor,
package/src/Bot.d.ts CHANGED
@@ -203,7 +203,7 @@ export class Bot implements BotConfigGetable {
203
203
  * @param group 必选,群号
204
204
  * @param content 必选,公告内容
205
205
  */
206
- async publishAnno({ group, content, pinned }: Bot.PublishAnnoOptions): Promise<void>;
206
+ publishAnno({ group, content, pinned }: Bot.PublishAnnoOptions): Promise<void>;
207
207
 
208
208
  /**
209
209
  * @description 删除群公告
@@ -211,7 +211,7 @@ export class Bot implements BotConfigGetable {
211
211
  * @param {string} fid 必选,公告 id
212
212
  * @reaturns {void}
213
213
  */
214
- async deleteAnno({ group, fid }: Bot.DeleteAnnoOptions): Promise<void>;
214
+ deleteAnno({ group, fid }: Bot.DeleteAnnoOptions): Promise<void>;
215
215
 
216
216
  /**
217
217
  * @description 禁言群成员
@@ -439,7 +439,7 @@ declare namespace Bot {
439
439
  }
440
440
 
441
441
  interface GetAnnoIterOptions {
442
- gourp: number;
442
+ group: number;
443
443
  }
444
444
 
445
445
  interface PublishAnnoOptions {