---
title: "getnamecallmethod"
description: "Reads the thread's current namecall atom."
---

```lua
getnamecallmethod(): string?
```

---

## Aliases

None.

---

## Arguments

This function takes no arguments.

---

## Returns

<ResponseField name="method" type="string?">
  The current namecall method name, or nil if no atom is set.
</ResponseField>

Meaningful inside a __namecall handler; nil when no atom is set.

---

## Example

```lua
print(getnamecallmethod())
```
