# SimpleObjectAPI (widget methods): 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/SimpleObjectAPI

## Functions

### ClearParentKey

```lua
self:ClearParentKey()
```

### GetDebugName

```lua
debugName = self:GetDebugName([preferParentKey])
```

Arguments:
- `preferParentKey`: bool, default false

Returns:
- `debugName`: string

### GetParent

```lua
parent = self:GetParent()
```

Its returns can be secret values (in some instances and fights): guard them before any arithmetic.

Returns:
- `parent`: CScriptObject

### GetParentKey

```lua
parentKey = self:GetParentKey()
```

Returns:
- `parentKey`: cstring

### SetParentKey

```lua
self:SetParentKey(parentKey, [clearOtherKeys])
```

Arguments:
- `parentKey`: cstring
- `clearOtherKeys`: bool, default false

---
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."
