mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-07-19 12:03:37 +00:00
fix
This commit is contained in:
2
src/core
2
src/core
Submodule src/core updated: 5166828077...31b28b949e
@@ -3,7 +3,8 @@ import BaseAction from '../BaseAction';
|
||||
import { ActionName } from '../types';
|
||||
|
||||
interface PayloadType {
|
||||
group_id: number
|
||||
group_id: number;
|
||||
content: string;
|
||||
}
|
||||
|
||||
export class SetGroupNotice extends BaseAction<PayloadType, null> {
|
||||
@@ -11,7 +12,7 @@ export class SetGroupNotice extends BaseAction<PayloadType, null> {
|
||||
|
||||
protected async _handle(payload: PayloadType) {
|
||||
const group = payload.group_id.toString();
|
||||
WebApi.setGroupNotice(group);
|
||||
WebApi.setGroupNotice(group, payload.content);
|
||||
return null;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user