feat(onebot): expose group-wide mute status
Report whether group-wide mute is enabled through the existing group list and group information responses. Keep standard and extended queries aligned, support explicit refreshes in the SDK, and update the generated action documentation without adding another endpoint. Preserve established compatibility values, isolate cached non-member results by account, and add coverage across the request, mapping, action, and client layers. Closes #313
This commit is contained in:
18 files changed
+687
-56
No files matched your search
@@ -466,12 +466,18 @@ export abstract class SnowLumaApiClient {
|
||||
return this.call('get_clientkey', {}, options);
|
||||
}
|
||||
|
||||
getGroupInfoEx(groupId: number, options?: RequestOptions) {
|
||||
return this.call('get_group_info_ex', { group_id: groupId }, options);
|
||||
getGroupInfoEx(groupId: number, options?: RequestOptions & { noCache?: boolean }) {
|
||||
return this.call('get_group_info_ex', {
|
||||
group_id: groupId,
|
||||
no_cache: options?.noCache,
|
||||
}, options);
|
||||
}
|
||||
|
||||
getGroupDetailInfo(groupId: number, options?: RequestOptions) {
|
||||
return this.call('get_group_detail_info', { group_id: groupId }, options);
|
||||
getGroupDetailInfo(groupId: number, options?: RequestOptions & { noCache?: boolean }) {
|
||||
return this.call('get_group_detail_info', {
|
||||
group_id: groupId,
|
||||
no_cache: options?.noCache,
|
||||
}, options);
|
||||
}
|
||||
|
||||
/** Calls any registered SnowLuma action and returns the response data. */
|
||||
|
||||
@@ -232,8 +232,8 @@ export interface SnowLumaActionMap {
|
||||
click_inline_keyboard_button: { params: JsonObject; data: JsonValue };
|
||||
set_group_sign: { params: JsonObject; data: EmptyData };
|
||||
send_group_sign: { params: JsonObject; data: EmptyData };
|
||||
get_group_info_ex: { params: GroupIdParams; data: JsonObject };
|
||||
get_group_detail_info: { params: GroupIdParams; data: JsonObject };
|
||||
get_group_info_ex: { params: GetGroupInfoParams; data: JsonObject };
|
||||
get_group_detail_info: { params: GetGroupInfoParams; data: JsonObject };
|
||||
trans_group_file: { params: JsonObject; data: JsonValue };
|
||||
rename_group_file: { params: JsonObject; data: JsonValue };
|
||||
get_file: { params: GetMediaParams; data: JsonValue };
|
||||
|
||||
Reference in new issue
Block a user