Skip to main content
Hook to get the direct messages of the current user.

Imports

Examples

You can combine this hook with the useDm, useMemberList and useMember hooks to get all direct messages of the current user and render them, showing the name of the other user in the dm:

Definition

Source: useUserDms

Parameters

config

  • Type: ObservableConfig.FromObservable<Dms>
  • Optional
Configuration options for the observable.

Return Type

The list of all direct messages stream ids of the current user.