mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-13 00:10:27 +00:00
feat: add settings field to group notice API response (#1505)
* feat: add settings field to group notice API response - Add settings field to GroupNotice interface - Include announcement configuration options (is_show_edit_card, remind_ts, tip_window_type, confirm_required) - Fixes #1503 * refactor: make settings field optional for backward compatibility - Mark settings as optional in GroupNotice interface - Mark settings as optional in WebApiGroupNoticeFeed type - Prevents runtime errors when processing older or malformed notices - Addresses code review feedback on PR #1505 * Update GetGroupNotice.ts --------- Co-authored-by: 手瓜一十雪 <nanaeonn@outlook.com>
This commit is contained in:
@@ -73,7 +73,7 @@ export interface WebApiGroupNoticeFeed {
|
||||
fn: number;
|
||||
cn: number;
|
||||
vn: number;
|
||||
settings: {
|
||||
settings?: {
|
||||
is_show_edit_card: number
|
||||
remind_ts: number
|
||||
tip_window_type: number
|
||||
|
||||
Reference in New Issue
Block a user