Skip to content

Commit

Permalink
Merge pull request #27 from MocA-Love/main
Browse files Browse the repository at this point in the history
feat/docs: add findSquareByEmid / fix Zenkaku
  • Loading branch information
EdamAme-x authored Sep 10, 2024
2 parents 20cd0c5 + 28a6043 commit 9a06b7e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

---

##### <center>❓ Question: Join our [Discord community](https://discord.gg/evex)</center>
##### <center>❓ Question: Join our [Discord community](https://discord.gg/evex)</center>
##### <center>📚 Documentation: [Check out the full documentation](https://linejs.evex.land)</center>

---
Expand Down
21 changes: 19 additions & 2 deletions packages/client/clients/internal/square-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,22 @@ export class SquareClient extends LiffClient {
);
}

/**
* @description Find square by Emid.
*/
public async findSquareByEmid(options: {
emid: string;
}): Promise<LINETypes.SquareChat> { // ...???
const { emid } = { ...options };
return await this.request(
[[11, 1, emid]],
"findSquareByEmid",
this.SquareService_PROTOCOL_TYPE,
true,
this.SquareService_API_PATH,
);
}

/**
* @description Fetch square events.
*/
Expand Down Expand Up @@ -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<LINETypes.SendMessageResponse>();
const { promise, resolve } = Promise.withResolvers<
LINETypes.SendMessageResponse
>();

const request = async () => {
resolve(
Expand Down

0 comments on commit 9a06b7e

Please sign in to comment.