You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
exportclassMyAppextendsAppimplementsIUIKitInteractionHandler{publicasyncexecuteActionButtonHandler(context: UIKitActionButtonInteractionContext,read: IRead,http: IHttp,persistence: IPersistence,modify: IModify): Promise<IUIKitResponse>{const{
buttonContext,
actionId,
triggerId,
user,
room,
message,}=context.getInteractionData();// If you have multiple action buttons, use `actionId` to determine // which one the user interacted withconstblockBuilder=modify.getCreator().getBlockBuilder();returncontext.getInteractionResponder().openModalViewResponse({title: blockBuilder.newPlainTextObject('Interaction received'),blocks: blockBuilder.addSectionBlock({text: blockBuilder.newPlainTextObject('We received your interaction, thanks!')}).getBlocks(),});returncontext.getInteractionResponder().successResponse();}}
The getBlockBuilder method is deprecated, with which I can now build blocks and display it in a modal window
The text was updated successfully, but these errors were encountered: