# Function: getContact()

> **getContact**(`id`): [`Contact`](../type-aliases/Contact.md) \| `undefined`

Defined in: [contacts.ts:93](https://github.com/laruss/react-text-game/blob/37ebb1fd49045bfbb1d2a2fa96b8f14a2f8c2644/packages/messenger/src/contacts.ts#L93)

Looks up a defined contact.

## Parameters

### id

`string`

Contact id

## Returns

[`Contact`](../type-aliases/Contact.md) \| `undefined`

The contact, or `undefined` when nothing was defined under that id
