getDmByIdentity

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

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