feat(onebot): add group share links
Retrieve group invitation links with compatible request defaults and explicit error reporting. Add a typed SDK helper and discoverable action documentation. Fixes #521
This commit is contained in:
14 files changed
+587
-2
No files matched your search
@@ -153,6 +153,26 @@ export abstract class SnowLumaApiClient {
|
||||
);
|
||||
}
|
||||
|
||||
getGroupShareLink(
|
||||
groupId: number,
|
||||
options?: RequestOptions & {
|
||||
needShortUrl?: boolean;
|
||||
srcId?: number;
|
||||
additionalParam?: string;
|
||||
},
|
||||
) {
|
||||
return this.call(
|
||||
'get_group_share_link',
|
||||
{
|
||||
group_id: groupId,
|
||||
need_short_url: options?.needShortUrl,
|
||||
src_id: options?.srcId,
|
||||
additional_param: options?.additionalParam,
|
||||
},
|
||||
options,
|
||||
);
|
||||
}
|
||||
|
||||
getGroupMemberInfo(
|
||||
groupId: number,
|
||||
userId: number,
|
||||
|
||||
Reference in new issue
Block a user