feat(onebot): set profile gender and return stranger online status
set_qq_profile accepts sex. get_stranger_info now returns the online status, extended status, and custom status that QQ already provides on the user profile. Closes #397 Closes #398
This commit is contained in:
11 files changed
+81
-13
No files matched your search
@@ -455,10 +455,11 @@ export abstract class SnowLumaApiClient {
|
||||
return this.call('download_file', params, options);
|
||||
}
|
||||
|
||||
setQqProfile(params: { nickname?: string; personalNote?: string }, options?: RequestOptions) {
|
||||
setQqProfile(params: { nickname?: string; personalNote?: string; sex?: number }, options?: RequestOptions) {
|
||||
return this.call('set_qq_profile', {
|
||||
nickname: params.nickname,
|
||||
personal_note: params.personalNote,
|
||||
...(params.sex !== undefined ? { sex: params.sex } : {}),
|
||||
}, options);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user