Skip to main content
Hook to redact any message in a channel if you’re an admin.

Imports

Examples

Redact a message

You can use adminRedact to redact a message in a stream.

Redact a message reaction

You can also use redact to redact a message reaction in a stream.

Definition

Source: useAdminRedact

Parameters

streamId

  • Type: string
The id of the stream to redact the message in.

config

  • Type: ActionConfig<Channel["adminRedact"]>
  • Optional
Configuration options for the action.

Return Type

The redact action and its loading state.