> ## Documentation Index
> Fetch the complete documentation index at: https://docs.baobun.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Welcomer

> Welcomer sends messages to channels when a new member joins.

<Warning>
  `<>` means an argument is required, `[]` means it's optional
</Warning>

### Adding a channel

Add a channel to receive welcome messages.

<CodeGroup>
  ```js Syntax theme={null}
  /welcomer add [channel] [response_name] [delay] [delete_after] [enable] [webhook_name]
  ```
</CodeGroup>

* `channel` (channel): optional <br />
  The channel that will receive welcome messages.
* `response_name` (text): optional <br />
  The custom content to use for this welcome message.
* `delay` (time): optional <br />
  Delay before sending the welcome message.
* `delete_after` (time): optional <br />
  Delete after sending the welcome message.
* `enable` (bool): defaults to **true** <br />
  Whether the welcomer is enabled for this channel.
* `webhook_name` (text): defaults to **baobun** <br />
  Name of the webhook created for the welcomer.

### Removing a channel

Remove a channel from receiving welcome messages.

<CodeGroup>
  ```js Syntax theme={null}
  /welcomer remove [channel]
  ```
</CodeGroup>

* `channel` (channel): optional <br />
  The channel to remove from the welcomer.

### Delaying a channel

Change the delay for the welcomer.

<Note>Setting a delay of 0s sets no delay for the welcomer message</Note>

<CodeGroup>
  ```js Syntax theme={null}
  /welcomer delay <delay> [channel]
  ```
</CodeGroup>

* `delay` (time): required <br />
  The delay duration you want to delay the welcomer messages.
* `channel` (channel): optional <br />
  The channel to apply the delay to.

### Deleting after a channel

Change the delete after for the welcomer.

<Note>Setting delete\_after to 0s keeps the welcomer message</Note>

<CodeGroup>
  ```js Syntax theme={null}
  /welcomer delete-after <delete_after> [channel]
  ```
</CodeGroup>

* `delete_after` (time): required <br />
  The delete after duration after the welcome message is sent.
* `channel` (channel): optional <br />
  The channel to apply the delete after to.

### Enable a channel

Enable or disable the welcomer for a channel.

<CodeGroup>
  ```js Syntax theme={null}
  /welcomer enable [channel]
  ```
</CodeGroup>

* `channel` (channel): optional <br />
  The channel to enable or disable welcomer for.

### Setting content for a channel

Set the welcome content for a channel.

<CodeGroup>
  ```js Syntax theme={null}
  /welcomer content <response_name> [channel]
  ```
</CodeGroup>

* `response_name` (text): required <br />
  The name of the content to assign.
* `channel` (channel): optional <br />
  The channel to apply the content to.

### Test sending

Run a test welcome message.

<CodeGroup>
  ```js Syntax theme={null}
  /welcomer test
  ```
</CodeGroup>
