onebots 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -103,13 +103,11 @@ class CommonAction {
|
|
|
103
103
|
});
|
|
104
104
|
}
|
|
105
105
|
async submitSlider(ticket) {
|
|
106
|
-
|
|
107
|
-
// @ts-ignore
|
|
106
|
+
this.client.submitSlider(ticket);
|
|
108
107
|
return this.action.login.apply(this, []);
|
|
109
108
|
}
|
|
110
109
|
async submitSmsCode(code) {
|
|
111
110
|
await this.client.submitSmsCode(code);
|
|
112
|
-
// @ts-ignore
|
|
113
111
|
return this.action.login.apply(this, []);
|
|
114
112
|
}
|
|
115
113
|
sendSmsCode() {
|
|
@@ -23,8 +23,8 @@ export declare class CommonAction {
|
|
|
23
23
|
version: string;
|
|
24
24
|
onebot_version: string;
|
|
25
25
|
};
|
|
26
|
-
submitSlider(this: V12, ticket: string): Promise<
|
|
27
|
-
submitSmsCode(this: V12, code: string): Promise<
|
|
26
|
+
submitSlider(this: V12, ticket: string): Promise<any>;
|
|
27
|
+
submitSmsCode(this: V12, code: string): Promise<any>;
|
|
28
28
|
sendSmsCode(this: V12): void;
|
|
29
29
|
login(this: V12, password?: string): Promise<unknown>;
|
|
30
30
|
getSupportedActions(this: V12): string[];
|
|
@@ -35,21 +35,19 @@ class CommonAction {
|
|
|
35
35
|
}
|
|
36
36
|
getVersion() {
|
|
37
37
|
return {
|
|
38
|
-
impl: '
|
|
38
|
+
impl: 'onebots',
|
|
39
39
|
platform: 'qq',
|
|
40
|
-
version: '0.0.
|
|
40
|
+
version: '0.0.5',
|
|
41
41
|
onebot_version: '12'
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
44
|
async submitSlider(ticket) {
|
|
45
45
|
await this.client.submitSlider(ticket);
|
|
46
|
-
|
|
47
|
-
return this.action.login();
|
|
46
|
+
return this.action.login.apply(this, []);
|
|
48
47
|
}
|
|
49
48
|
async submitSmsCode(code) {
|
|
50
49
|
await this.client.submitSmsCode(code);
|
|
51
|
-
|
|
52
|
-
return this.action.login();
|
|
50
|
+
return this.action.login.apply(this, []);
|
|
53
51
|
}
|
|
54
52
|
sendSmsCode() {
|
|
55
53
|
return this.client.sendSmsCode();
|