mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-13 08:20:27 +00:00
refactor: rm SetGroupNotice
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
import { WebApi } from '@/core/apis/webapi';
|
||||
import BaseAction from '../BaseAction';
|
||||
import { ActionName } from '../types';
|
||||
|
||||
interface PayloadType {
|
||||
group_id: number;
|
||||
content: string;
|
||||
}
|
||||
|
||||
export class SetGroupNotice extends BaseAction<PayloadType, any> {
|
||||
actionName = ActionName.GoCQHTTP_SetGroupNotice;
|
||||
|
||||
protected async _handle(payload: PayloadType) {
|
||||
const group = payload.group_id.toString();
|
||||
return await WebApi.setGroupNotice(group, payload.content);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user