Skip to content

Function: showSuccessNotice()

ts
function showSuccessNotice(ctx: Context, options: ShowSuccessNoticeOptions): Promise<NoticeBubbleResult>;

Defined in: src/notice/showSuccessNotice.tsx:106

Parameters

ParameterTypeDescription
ctxContextContext object.
optionsShowSuccessNoticeOptionsSuccess notice configuration.

Returns

Promise<NoticeBubbleResult>

The notice bubble result, including the selected button and optional feedback text.

Deprecated

Use showUI.success instead.

Show a success notice bubble with optional feedback and a clicker game.

Example

ts
const result = await showSuccessNotice(ctx, {
  title: 'Invoice processed',
  subtitle: 'All done!',
  text: 'The invoice was filed under Q4 expenses.',
});
console.log('User responded with:', result.button);

Matterway Assistant SDK Documentation