Revert "fix: 对齐 OneBot schema 与合并转发消息处理行为 (#1694)" (#1701)
Release NapCat / validate-version (push) Canceled after 0s
Release NapCat / Build-Framework (push) Canceled after 0s
Release NapCat / Build-Shell (push) Canceled after 0s
Release NapCat / Download-QNX64 (push) Canceled after 0s
Release NapCat / release-napcat (push) Canceled after 0s
Release NapCat / validate-version (push) Canceled after 0s
Release NapCat / Build-Framework (push) Canceled after 0s
Release NapCat / Build-Shell (push) Canceled after 0s
Release NapCat / Download-QNX64 (push) Canceled after 0s
Release NapCat / release-napcat (push) Canceled after 0s
This reverts commit deae7fd467.
This commit is contained in:
54 files changed
+195
-1078
No files matched your search
@@ -1,27 +1,20 @@
|
||||
import { OneBotAction } from '@/napcat-onebot/action/OneBotAction';
|
||||
import { ActionName } from '@/napcat-onebot/action/router';
|
||||
|
||||
import { Static, Type } from '@sinclair/typebox';
|
||||
import { Type } from '@sinclair/typebox';
|
||||
import { GuildActionsExamples } from '../example/GuildActionsExamples';
|
||||
|
||||
const PayloadSchema = Type.Object({});
|
||||
|
||||
type PayloadType = Static<typeof PayloadSchema>;
|
||||
|
||||
const ReturnSchema = Type.Null();
|
||||
|
||||
type ReturnType = Static<typeof ReturnSchema>;
|
||||
|
||||
export class GetGuildList extends OneBotAction<PayloadType, ReturnType> {
|
||||
export class GetGuildList extends OneBotAction<void, void> {
|
||||
override actionName = ActionName.GetGuildList;
|
||||
override payloadSchema = PayloadSchema;
|
||||
override returnSchema = ReturnSchema;
|
||||
override payloadSchema = Type.Object({});
|
||||
override returnSchema = Type.Null();
|
||||
override actionSummary = '获取频道列表';
|
||||
override actionDescription = '获取当前帐号已加入的频道列表;当前兼容实现返回空结果';
|
||||
override actionDescription = '获取当前帐号已加入的频道列表';
|
||||
override actionTags = ['频道接口'];
|
||||
override payloadExample = {};
|
||||
override returnExample = null;
|
||||
override payloadExample = GuildActionsExamples.GetGuildList.payload;
|
||||
override returnExample = GuildActionsExamples.GetGuildList.response;
|
||||
|
||||
async _handle (): Promise<void> {
|
||||
|
||||
async _handle (): Promise<ReturnType> {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user