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.
- package/dist/node/BaseType.d.ts +2 -2
- package/dist/node/Bot.d.ts +3 -3
- package/package.json +1 -1
- package/src/BaseType.d.ts +2 -2
- package/src/Bot.d.ts +3 -3
package/dist/node/BaseType.d.ts
CHANGED
package/dist/node/Bot.d.ts
CHANGED
@@ -203,7 +203,7 @@ export class Bot implements BotConfigGetable {
|
|
203
203
|
* @param group 必选,群号
|
204
204
|
* @param content 必选,公告内容
|
205
205
|
*/
|
206
|
-
|
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
|
-
|
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
|
-
|
442
|
+
group: number;
|
443
443
|
}
|
444
444
|
|
445
445
|
interface PublishAnnoOptions {
|
package/package.json
CHANGED
package/src/BaseType.d.ts
CHANGED
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
|
-
|
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
|
-
|
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
|
-
|
442
|
+
group: number;
|
443
443
|
}
|
444
444
|
|
445
445
|
interface PublishAnnoOptions {
|