hytopia
Version:
The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.
57 lines (27 loc) • 784 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [client](./client.md) > [HytopiaUI](./client.hytopiaui.md) > [hasProfanity](./client.hytopiaui.hasprofanity.md)
## HytopiaUI.hasProfanity() method
Checks if text contains inappropriate language. Useful for validating input before sending to the server.
**Signature:**
```typescript
hasProfanity(text: string): boolean;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
text
</td><td>
string
</td><td>
Text to check
</td></tr>
</tbody></table>
**Returns:**
boolean
`true` if profanity is detected, `false` otherwise