# C_PlayerInteractionManager: World of Warcraft Forever API

Forever 1.60.1 (70959), Interface 16001, Lua 5.1, from Blizzard's own API documentation. Page: https://wowaddons.gg/forever-api/C_PlayerInteractionManager

## Functions

### C_PlayerInteractionManager.ClearInteraction

```lua
C_PlayerInteractionManager.ClearInteraction([type])
```

Arguments:
- `type`: PlayerInteractionType, may be nil

### C_PlayerInteractionManager.ConfirmationInteraction

```lua
C_PlayerInteractionManager.ConfirmationInteraction([type])
```

Arguments:
- `type`: PlayerInteractionType, may be nil

### C_PlayerInteractionManager.InteractUnit

```lua
success = C_PlayerInteractionManager.InteractUnit(unit, [exactMatch], [looseTargeting])
```

Arguments:
- `unit`: string
- `exactMatch`: bool, default false
- `looseTargeting`: bool, default true

Returns:
- `success`: bool

### C_PlayerInteractionManager.IsInteractingWithNpcOfType

```lua
interacting = C_PlayerInteractionManager.IsInteractingWithNpcOfType(type)
```

Arguments:
- `type`: PlayerInteractionType

Returns:
- `interacting`: bool

### C_PlayerInteractionManager.IsReplacingUnit

```lua
replacing = C_PlayerInteractionManager.IsReplacingUnit()
```

Returns:
- `replacing`: bool

### C_PlayerInteractionManager.IsValidNPCInteraction

```lua
isValidInteraction = C_PlayerInteractionManager.IsValidNPCInteraction(type)
```

Arguments:
- `type`: PlayerInteractionType

Returns:
- `isValidInteraction`: bool

### C_PlayerInteractionManager.ReopenInteraction

```lua
C_PlayerInteractionManager.ReopenInteraction()
```

### C_PlayerInteractionManager.ShardTransferConfirm

```lua
C_PlayerInteractionManager.ShardTransferConfirm()
```

## Events

### PLAYER_INTERACTION_MANAGER_FRAME_HIDE

Payload, after the event's name:
- `type`: PlayerInteractionType

### PLAYER_INTERACTION_MANAGER_FRAME_SHOW

Payload, after the event's name:
- `type`: PlayerInteractionType

---
Make an addon with your AI: tell it "Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it."
