API
useRedact
Hook to redact your own message in a channel stream.
Imports
Examples
Redact a message
You can use redact
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: useRedact
Parameters
streamId
- Type:
string
The id of the stream to redact the message in.
config
- Type:
ActionConfig<Channel['redact']>
- Optional
Configuration options for the action.
Return Type
The redact
action and its loading state.
Was this page helpful?