onebots 0.0.4 → 0.0.5
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.
|
@@ -58,7 +58,7 @@ export declare class CommonAction {
|
|
|
58
58
|
good: boolean;
|
|
59
59
|
};
|
|
60
60
|
login(this: V11, password?: string): Promise<unknown>;
|
|
61
|
-
submitSlider(this: V11, ticket: string): Promise<
|
|
62
|
-
submitSmsCode(this: V11, code: string): Promise<
|
|
61
|
+
submitSlider(this: V11, ticket: string): Promise<any>;
|
|
62
|
+
submitSmsCode(this: V11, code: string): Promise<any>;
|
|
63
63
|
sendSmsCode(this: V11): void;
|
|
64
64
|
}
|
|
@@ -105,12 +105,12 @@ class CommonAction {
|
|
|
105
105
|
async submitSlider(ticket) {
|
|
106
106
|
await this.client.submitSlider(ticket);
|
|
107
107
|
// @ts-ignore
|
|
108
|
-
return this.action.login();
|
|
108
|
+
return this.action.login.apply(this, []);
|
|
109
109
|
}
|
|
110
110
|
async submitSmsCode(code) {
|
|
111
111
|
await this.client.submitSmsCode(code);
|
|
112
112
|
// @ts-ignore
|
|
113
|
-
return this.action.login();
|
|
113
|
+
return this.action.login.apply(this, []);
|
|
114
114
|
}
|
|
115
115
|
sendSmsCode() {
|
|
116
116
|
return this.client.sendSmsCode();
|