# Tasks

The Tasks system allows server administrators to create and manage various tasks for users to complete, with support for both text and image-based submissions. The system includes task creation, submission, review, and reward distribution.

## <mark style="color:red;">Server Admin Commands</mark>

### Set Up Tasks UI

```
/tasks ui <channel> [task_ui_image_url] [task_ui_embed_text]
```

Parameters:

* `channel`: Channel to place the UI
* `task_ui_image_url`: (Optional) Custom image URL
* `task_ui_embed_text`: (Optional) Custom embed text

### Add Task

```
/tasks add <task_type> <task_name> <task_description> <task_reward> [allowed_role] [max_approvals]
```

Parameters:

* `task_type`: Type of task (text/image)
* `task_name`: Name of the task
* `task_description`: Description of the task
* `task_reward`: Reward amount
* `allowed_role`: (Optional) Role restriction
* `max_approvals`: (Optional) Maximum number of approvals

### View Task Info

```
/tasks info <task_name>
```

Parameters:

* `task_name`: Name of the task to view

### Delete Task

```
/tasks delete <task_name>
```

Parameters:

* `task_name`: Name of the task to delete

### Edit Task

```
/tasks edit <task_name> [task_description] [task_reward] [allowed_role] [max_approvals]
```

Parameters:

* `task_name`: Name of the task to edit
* `task_description`: (Optional) New description
* `task_reward`: (Optional) New reward amount
* `allowed_role`: (Optional) New role restriction
* `max_approvals`: (Optional) New maximum approvals

### View All Tasks

```
/tasks view-all
```

Shows all tasks in the server.

### Review Tasks

```
/tasks review [task_name] [user_name]
```

Parameters:

* `task_name`: (Optional) Filter by task name
* `user_name`: (Optional) Filter by user

## <mark style="color:yellow;">For Community Members</mark>

Community members can use the Tasks UI to view tasks, complete them and check their tasks status. Alternatively, they can also use the commands below.

### Submit Task

```
/submit-task <task_name> <image>
```

Parameters:

* `task_name`: Name of the task
* `image`: Image attachment (for image tasks)

### View Completed Tasks

```
/completed-tasks [user] [page]
```

Parameters:

* `user`: (Optional) User to check
* `page`: (Optional) Page number (1-10)

### View Pending Tasks

```
/pending-tasks [user] [page]
```

Parameters:

* `user`: (Optional) User to check
* `page`: (Optional) Page number (1-10)

### View Rejected Tasks

```
/rejected-tasks [user] [page]
```

Parameters:

* `user`: (Optional) User to check
* `page`: (Optional) Page number (1-10)

| Feature          | Free Package | Pro Package          | Enterprise Package   |
| ---------------- | ------------ | -------------------- | -------------------- |
| Maximum Tasks    | 1            | 5                    | 25                   |
| UI Customization | ❌            | :white\_check\_mark: | :white\_check\_mark: |
| Task Types       | Text/Image   | Text/Image           | Text/Image           |
| Task Approvals   | Unlimited    | Unlimited            | Unlimited            |
