Skip to main content

Interface: CreateFlagOptions

Gala Launchpad SDK 9.0.0-rc.5


Gala Launchpad SDK 9.0.0-rc.5 / index / CreateFlagOptions

Interface: CreateFlagOptions

Defined in: packages/launchpad-sdk/dist/types/content-flag.dto.d.ts:112

Options for creating a content flag/report

  • Chat/Comment: reason and details are optional (one-click flag)
  • Stream: reason is required (modal flow)

Properties​

contentId​

contentId: string

Defined in: packages/launchpad-sdk/dist/types/content-flag.dto.d.ts:118

ID of the content (message ID, comment ID, or stream ID)


contentType​

contentType: ContentType

Defined in: packages/launchpad-sdk/dist/types/content-flag.dto.d.ts:116

Type of content being flagged


details?​

optional details?: string

Defined in: packages/launchpad-sdk/dist/types/content-flag.dto.d.ts:124

Additional details about the flag (max 500 chars)


reason?​

optional reason?: FlagReason

Defined in: packages/launchpad-sdk/dist/types/content-flag.dto.d.ts:122

Reason for the flag (required for STREAM, optional for others)


reportedUserAddress​

reportedUserAddress: string

Defined in: packages/launchpad-sdk/dist/types/content-flag.dto.d.ts:120

Address of the user who created the flagged content


tokenName​

tokenName: string

Defined in: packages/launchpad-sdk/dist/types/content-flag.dto.d.ts:114

Token name the content belongs to