getDmByIdentity

abstract suspend fun getDmByIdentity(identity: PublicIdentity): Dm?

The DM with an account or a handle, or None. Either resolves through the verified resolver before the DM is looked up.