feat(onebot): accept join question and answer on set_group_add_option
add_type 4 takes group_question and group_answer. add_type 5 (and 55) takes group_question. get_group_admin_settings also returns both. Fixes #383
This commit is contained in:
8 files changed
+148
-9
No files matched your search
@@ -88,6 +88,8 @@ export interface SetGroupWholeBanParams extends GroupIdParams {
|
||||
|
||||
export interface SetGroupAddOptionParams extends GroupIdParams {
|
||||
add_type: number;
|
||||
group_question?: string;
|
||||
group_answer?: string;
|
||||
}
|
||||
|
||||
export interface SetGroupAdminParams extends GroupIdParams {
|
||||
|
||||
@@ -219,6 +219,8 @@ export interface GroupAtAllRemainInfo {
|
||||
|
||||
export type GroupAdminSettings = {
|
||||
add_type: number;
|
||||
group_question: string;
|
||||
group_answer: string;
|
||||
robot_member_switch: number;
|
||||
robot_member_examine: number;
|
||||
member_invite_policy: 'disabled' | 'require_approval' | 'no_approval' | 'no_approval_under_100';
|
||||
|
||||
Reference in new issue
Block a user