Skip to content

Commit 93cf135

Browse files
github-actions[bot]github-actions
andauthored
Add required: true for setRichMenuImage to fix sdk parameters (#1582)
line/line-openapi#123 Currently `setRichMenuImage`'s body is optional, but to set richmenu image, image data itself is required of course. This change fixes it. Co-authored-by: github-actions <github-actions@github.com>
1 parent 718a31a commit 93cf135

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

lib/line-bot-client.generated.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1505,7 +1505,7 @@ export abstract class LineBotClientBase {
15051505
}
15061506

15071507
/**
1508-
* Get number of sent LINE notification messages .
1508+
* Get number of sent LINE notification messages.
15091509
* This method includes HttpInfo object to return additional information.
15101510
* @param date Date the message was sent Format: `yyyyMMdd` (Example:`20211231`) Time zone: UTC+9
15111511
*
@@ -2733,7 +2733,7 @@ export abstract class LineBotClientBase {
27332733
*/
27342734
public async setRichMenuImage(
27352735
richMenuId: string,
2736-
body?: Blob,
2736+
body: Blob,
27372737
): Promise<Types.MessageAPIResponseBase> {
27382738
return this.clients.messagingApiBlob.setRichMenuImage(richMenuId, body);
27392739
}
@@ -2748,7 +2748,7 @@ export abstract class LineBotClientBase {
27482748
*/
27492749
public async setRichMenuImageWithHttpInfo(
27502750
richMenuId: string,
2751-
body?: Blob,
2751+
body: Blob,
27522752
): Promise<Types.ApiResponseType<Types.MessageAPIResponseBase>> {
27532753
return this.clients.messagingApiBlob.setRichMenuImageWithHttpInfo(
27542754
richMenuId,

lib/messaging-api/api/messagingApiBlobClient.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ export class MessagingApiBlobClient {
186186
*/
187187
public async setRichMenuImage(
188188
richMenuId: string,
189-
body?: Blob,
189+
body: Blob,
190190
): Promise<Types.MessageAPIResponseBase> {
191191
return (await this.setRichMenuImageWithHttpInfo(richMenuId, body)).body;
192192
}
@@ -201,7 +201,7 @@ export class MessagingApiBlobClient {
201201
*/
202202
public async setRichMenuImageWithHttpInfo(
203203
richMenuId: string,
204-
body?: Blob,
204+
body: Blob,
205205
): Promise<Types.ApiResponseType<Types.MessageAPIResponseBase>> {
206206
const params = body;
207207

lib/messaging-api/api/messagingApiClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1039,7 +1039,7 @@ export class MessagingApiClient {
10391039
}
10401040

10411041
/**
1042-
* Get number of sent LINE notification messages .
1042+
* Get number of sent LINE notification messages.
10431043
* This method includes HttpInfo object to return additional information.
10441044
* @param date Date the message was sent Format: `yyyyMMdd` (Example:`20211231`) Time zone: UTC+9
10451045
*

line-openapi

0 commit comments

Comments
 (0)