mezon-js 2.12.48 → 2.12.49
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.
- package/client.ts +3 -2
- package/dist/client.d.ts +1 -1
- package/dist/mezon-js.cjs.js +2 -2
- package/dist/mezon-js.esm.mjs +2 -2
- package/package.json +1 -1
package/client.ts
CHANGED
@@ -4753,7 +4753,8 @@ export class Client {
|
|
4753
4753
|
async listQuickMenuAccess(
|
4754
4754
|
session: Session,
|
4755
4755
|
botId: string,
|
4756
|
-
channelId: string
|
4756
|
+
channelId: string,
|
4757
|
+
menuType: number
|
4757
4758
|
): Promise<ApiQuickMenuAccessList> {
|
4758
4759
|
if (
|
4759
4760
|
this.autoRefreshSession &&
|
@@ -4764,7 +4765,7 @@ export class Client {
|
|
4764
4765
|
}
|
4765
4766
|
|
4766
4767
|
return this.apiClient
|
4767
|
-
.listQuickMenuAccess(session.token, botId, channelId)
|
4768
|
+
.listQuickMenuAccess(session.token, botId, channelId, menuType)
|
4768
4769
|
.then((response: ApiQuickMenuAccessList) => {
|
4769
4770
|
return Promise.resolve(response);
|
4770
4771
|
});
|
package/dist/client.d.ts
CHANGED
@@ -625,7 +625,7 @@ export declare class Client {
|
|
625
625
|
updateClanOrder(session: Session, request: ApiUpdateClanOrderRequest): Promise<boolean>;
|
626
626
|
/** list clan discover. */
|
627
627
|
listClanDiscover(basePath: string, request: ApiClanDiscoverRequest): Promise<ApiListClanDiscover>;
|
628
|
-
listQuickMenuAccess(session: Session, botId: string, channelId: string): Promise<ApiQuickMenuAccessList>;
|
628
|
+
listQuickMenuAccess(session: Session, botId: string, channelId: string, menuType: number): Promise<ApiQuickMenuAccessList>;
|
629
629
|
deleteQuickMenuAccess(session: Session, id: string): Promise<any>;
|
630
630
|
addQuickMenuAccess(session: Session, request: ApiQuickMenuAccessRequest): Promise<any>;
|
631
631
|
updateQuickMenuAccess(session: Session, request: ApiQuickMenuAccessRequest): Promise<any>;
|
package/dist/mezon-js.cjs.js
CHANGED
@@ -10574,12 +10574,12 @@ var Client = class {
|
|
10574
10574
|
});
|
10575
10575
|
});
|
10576
10576
|
}
|
10577
|
-
listQuickMenuAccess(session, botId, channelId) {
|
10577
|
+
listQuickMenuAccess(session, botId, channelId, menuType) {
|
10578
10578
|
return __async(this, null, function* () {
|
10579
10579
|
if (this.autoRefreshSession && session.refresh_token && session.isexpired(Date.now() / 1e3)) {
|
10580
10580
|
yield this.sessionRefresh(session);
|
10581
10581
|
}
|
10582
|
-
return this.apiClient.listQuickMenuAccess(session.token, botId, channelId).then((response) => {
|
10582
|
+
return this.apiClient.listQuickMenuAccess(session.token, botId, channelId, menuType).then((response) => {
|
10583
10583
|
return Promise.resolve(response);
|
10584
10584
|
});
|
10585
10585
|
});
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -10540,12 +10540,12 @@ var Client = class {
|
|
10540
10540
|
});
|
10541
10541
|
});
|
10542
10542
|
}
|
10543
|
-
listQuickMenuAccess(session, botId, channelId) {
|
10543
|
+
listQuickMenuAccess(session, botId, channelId, menuType) {
|
10544
10544
|
return __async(this, null, function* () {
|
10545
10545
|
if (this.autoRefreshSession && session.refresh_token && session.isexpired(Date.now() / 1e3)) {
|
10546
10546
|
yield this.sessionRefresh(session);
|
10547
10547
|
}
|
10548
|
-
return this.apiClient.listQuickMenuAccess(session.token, botId, channelId).then((response) => {
|
10548
|
+
return this.apiClient.listQuickMenuAccess(session.token, botId, channelId, menuType).then((response) => {
|
10549
10549
|
return Promise.resolve(response);
|
10550
10550
|
});
|
10551
10551
|
});
|