refactor onebot action context modules
This commit is contained in:
8 files changed
+871
-729
No files matched your search
@@ -21,8 +21,11 @@ export const SNOWLUMA_ACTIONS = [
|
||||
'get_group_honor_info',
|
||||
'get_group_system_msg',
|
||||
'set_group_kick',
|
||||
'set_group_kick_members',
|
||||
'set_group_ban',
|
||||
'set_group_whole_ban',
|
||||
'set_group_add_option',
|
||||
'set_group_search',
|
||||
'set_group_admin',
|
||||
'set_group_card',
|
||||
'set_group_name',
|
||||
@@ -78,6 +81,7 @@ export const SNOWLUMA_ACTIONS = [
|
||||
'clean_cache',
|
||||
'.handle_quick_operation',
|
||||
'set_friend_remark',
|
||||
'set_group_remark',
|
||||
'set_msg_emoji_like',
|
||||
'_mark_all_as_read',
|
||||
'get_group_file_system_info',
|
||||
@@ -91,6 +95,9 @@ export const SNOWLUMA_ACTIONS = [
|
||||
'forward_group_single_msg',
|
||||
'get_recent_contact',
|
||||
'get_profile_like',
|
||||
'fetch_custom_face',
|
||||
'get_emoji_likes',
|
||||
'fetch_emoji_like',
|
||||
'get_friends_with_category',
|
||||
'get_online_clients',
|
||||
'_get_model_show',
|
||||
|
||||
@@ -6,8 +6,11 @@ import type {
|
||||
DeleteGroupFileParams,
|
||||
DomainParams,
|
||||
DownloadFileParams,
|
||||
FetchCustomFaceParams,
|
||||
FetchEmojiLikeParams,
|
||||
ForwardMessageParams,
|
||||
FriendPokeParams,
|
||||
GetEmojiLikesParams,
|
||||
GetForwardMsgParams,
|
||||
GetFriendMessageHistoryParams,
|
||||
GetGroupFilesParams,
|
||||
@@ -39,11 +42,14 @@ import type {
|
||||
SetFriendAddRequestParams,
|
||||
SetFriendRemarkParams,
|
||||
SetGroupAddRequestParams,
|
||||
SetGroupAddOptionParams,
|
||||
SetGroupAdminParams,
|
||||
SetGroupBanParams,
|
||||
SetGroupCardParams,
|
||||
SetGroupKickParams,
|
||||
SetGroupKickMembersParams,
|
||||
SetGroupNameParams,
|
||||
SetGroupRemarkParams,
|
||||
SetGroupReactionParams,
|
||||
SetGroupSpecialTitleParams,
|
||||
SetGroupWholeBanParams,
|
||||
@@ -103,8 +109,11 @@ export interface SnowLumaActionMap {
|
||||
get_group_honor_info: { params: GetGroupHonorInfoParams; data: JsonValue };
|
||||
get_group_system_msg: { params: JsonObject; data: JsonObject[] };
|
||||
set_group_kick: { params: SetGroupKickParams; data: EmptyData };
|
||||
set_group_kick_members: { params: SetGroupKickMembersParams; data: EmptyData };
|
||||
set_group_ban: { params: SetGroupBanParams; data: EmptyData };
|
||||
set_group_whole_ban: { params: SetGroupWholeBanParams; data: EmptyData };
|
||||
set_group_add_option: { params: SetGroupAddOptionParams; data: EmptyData };
|
||||
set_group_search: { params: GroupIdParams; data: EmptyData };
|
||||
set_group_admin: { params: SetGroupAdminParams; data: EmptyData };
|
||||
set_group_card: { params: SetGroupCardParams; data: EmptyData };
|
||||
set_group_name: { params: SetGroupNameParams; data: EmptyData };
|
||||
@@ -160,6 +169,7 @@ export interface SnowLumaActionMap {
|
||||
clean_cache: { params: JsonObject; data: EmptyData };
|
||||
'.handle_quick_operation': { params: QuickOperationParams; data: EmptyData };
|
||||
set_friend_remark: { params: SetFriendRemarkParams; data: EmptyData };
|
||||
set_group_remark: { params: SetGroupRemarkParams; data: EmptyData };
|
||||
set_msg_emoji_like: { params: SetMsgEmojiLikeParams; data: EmptyData };
|
||||
_mark_all_as_read: { params: JsonObject; data: EmptyData };
|
||||
get_group_file_system_info: { params: GroupIdParams; data: GroupFileSystemInfo };
|
||||
@@ -173,6 +183,9 @@ export interface SnowLumaActionMap {
|
||||
forward_group_single_msg: { params: JsonObject; data: JsonValue };
|
||||
get_recent_contact: { params: JsonObject; data: JsonArray };
|
||||
get_profile_like: { params: JsonObject; data: JsonObject };
|
||||
fetch_custom_face: { params: FetchCustomFaceParams; data: string[] };
|
||||
get_emoji_likes: { params: GetEmojiLikesParams; data: JsonObject };
|
||||
fetch_emoji_like: { params: FetchEmojiLikeParams; data: JsonObject };
|
||||
get_friends_with_category: { params: JsonObject; data: JsonObject[] };
|
||||
get_online_clients: { params: JsonObject; data: OnlineClientsInfo };
|
||||
_get_model_show: { params: JsonObject; data: { variants: JsonArray } };
|
||||
|
||||
@@ -64,6 +64,11 @@ export interface SetGroupKickParams extends GroupIdParams {
|
||||
reject_add_request?: boolean;
|
||||
}
|
||||
|
||||
export interface SetGroupKickMembersParams extends GroupIdParams {
|
||||
user_id: number[];
|
||||
reject_add_request?: boolean;
|
||||
}
|
||||
|
||||
export interface SetGroupBanParams extends GroupIdParams {
|
||||
user_id: number;
|
||||
duration?: number;
|
||||
@@ -73,6 +78,10 @@ export interface SetGroupWholeBanParams extends GroupIdParams {
|
||||
enable?: boolean;
|
||||
}
|
||||
|
||||
export interface SetGroupAddOptionParams extends GroupIdParams {
|
||||
add_type: number;
|
||||
}
|
||||
|
||||
export interface SetGroupAdminParams extends GroupIdParams {
|
||||
user_id: number;
|
||||
enable?: boolean;
|
||||
@@ -254,12 +263,31 @@ export interface SetFriendRemarkParams extends UserIdParams {
|
||||
remark: string;
|
||||
}
|
||||
|
||||
export interface SetGroupRemarkParams extends GroupIdParams {
|
||||
remark: string;
|
||||
}
|
||||
|
||||
export interface SetMsgEmojiLikeParams extends JsonObject {
|
||||
message_id: number;
|
||||
emoji_id: string;
|
||||
set?: boolean;
|
||||
}
|
||||
|
||||
export interface FetchCustomFaceParams extends JsonObject {
|
||||
count?: number;
|
||||
}
|
||||
|
||||
export interface GetEmojiLikesParams extends MessageIdParams {
|
||||
emoji_id: string;
|
||||
}
|
||||
|
||||
export interface FetchEmojiLikeParams extends MessageIdParams {
|
||||
emojiId: string;
|
||||
emojiType?: number;
|
||||
count?: number;
|
||||
cookie?: string;
|
||||
}
|
||||
|
||||
export interface DownloadFileParams extends JsonObject {
|
||||
url?: string;
|
||||
base64?: string;
|
||||
|
||||
Reference in new issue
Block a user