# Commands

## Server

### register\_command

Registers a command with permission check and optional chat suggestions.

#### Parameters

* command: `string`
* rank: `string|table|nil`
* help: `string`
* params: `table`
* handler: `function`

```lua
bdtk.register_command(command, rank, help, params, handler)
```

***

## Client

### get\_command\_suggestions

Requests command chat suggestions for users.\
These are the tooltips that display when typing commands.

#### Returns

* `table`

```lua
bdtk.get_command_suggestions()
```
