mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-16 13:01:14 +00:00
Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
6eea52afdf
@ -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);
|
||||
}
|
||||
}
|
@ -57,10 +57,9 @@ export enum ActionName {
|
||||
GetRecord = 'get_record',
|
||||
CleanCache = 'clean_cache',
|
||||
GetCookies = 'get_cookies',
|
||||
// 以下为go-cqhttp api
|
||||
GoCQHTTP_SendGroupNotice = '_send_group_notice',
|
||||
// 以下为go-cqhttp api
|
||||
GoCQHTTP_GetEssenceMsg = 'get_essence_msg_list',
|
||||
GoCQHTTP_SetGroupNotice = '_send_group_notice',
|
||||
GoCQHTTP_SendGroupNotice = '_send_group_notice',
|
||||
GoCQHTTP_GetGroupNotice = '_get_group_notice',
|
||||
GoCQHTTP_SendForwardMsg = 'send_forward_msg',
|
||||
GoCQHTTP_SendGroupForwardMsg = 'send_group_forward_msg',
|
||||
|
Loading…
Reference in New Issue
Block a user