mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-21 09:36:35 +00:00
fix
This commit is contained in:
parent
efa5ee0e57
commit
09405de26c
@ -7,12 +7,11 @@ interface PayloadType {
|
|||||||
content: string;
|
content: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export class SetGroupNotice extends BaseAction<PayloadType, null> {
|
export class SetGroupNotice extends BaseAction<PayloadType, any> {
|
||||||
actionName = ActionName.GoCQHTTP_SetGroupNotice;
|
actionName = ActionName.GoCQHTTP_SetGroupNotice;
|
||||||
|
|
||||||
protected async _handle(payload: PayloadType) {
|
protected async _handle(payload: PayloadType) {
|
||||||
const group = payload.group_id.toString();
|
const group = payload.group_id.toString();
|
||||||
WebApi.setGroupNotice(group, payload.content);
|
return await WebApi.setGroupNotice(group, payload.content);
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user