> For the complete documentation index, see [llms.txt](https://creativedevelopments.gitbook.io/cdhandler/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://creativedevelopments.gitbook.io/cdhandler/using-cdhandler/prefixes.md).

# Prefixes

Per guild prefixes are pretty cool! Here are some ways to get a prefix from a guild and such!

## How to add a prefix to a specific guild?

```javascript
handler.prefixes.set('guild id', 'new prefix')
```

## How to get a prefix from a specific guild?

```javascript
handler.prefixes.get('guild id') || handler.prefix
```

{% hint style="info" %}
We recommend storing the prefixes in a db, and then, make a loop to add the prefix to the guild when the bot restarts.
{% endhint %}
