Skip to content

Commit efa3f24

Browse files
authored
Fix #1343 block_suggestion response does not support description in an option (#1351)
1 parent 11a6def commit efa3f24

File tree

1 file changed

+6
-0
lines changed
  • slack-app-backend/src/main/java/com/slack/api/app_backend/interactive_components/response

1 file changed

+6
-0
lines changed

slack-app-backend/src/main/java/com/slack/api/app_backend/interactive_components/response/Option.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,10 @@
1313
public class Option {
1414
private TextObject text;
1515
private String value;
16+
private TextObject description;
17+
18+
// For backward-compatibility
19+
public Option(TextObject text, String value) {
20+
this(text, value, null);
21+
}
1622
}

0 commit comments

Comments
 (0)