diff --git a/README.md b/README.md index 856edfe..a106b1d 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ --- -#####
❓ Question:γ€€Join our [Discord community](https://discord.gg/evex)
+#####
❓ Question: Join our [Discord community](https://discord.gg/evex)
#####
πŸ“š Documentation: [Check out the full documentation](https://linejs.evex.land)
--- diff --git a/packages/client/clients/internal/square-client.ts b/packages/client/clients/internal/square-client.ts index 6105867..2be1a87 100644 --- a/packages/client/clients/internal/square-client.ts +++ b/packages/client/clients/internal/square-client.ts @@ -211,6 +211,22 @@ export class SquareClient extends LiffClient { ); } + /** + * @description Find square by Emid. + */ + public async findSquareByEmid(options: { + emid: string; + }): Promise { // ...??? + const { emid } = { ...options }; + return await this.request( + [[11, 1, emid]], + "findSquareByEmid", + this.SquareService_PROTOCOL_TYPE, + true, + this.SquareService_API_PATH, + ); + } + /** * @description Fetch square events. */ @@ -312,8 +328,9 @@ export class SquareClient extends LiffClient { message.push([11, 21, relatedMessageId], [8, 22, 3], [8, 24, 2]); } - const { promise, resolve } = - Promise.withResolvers(); + const { promise, resolve } = Promise.withResolvers< + LINETypes.SendMessageResponse + >(); const request = async () => { resolve(