# Group Translations

*Groups channels using Automatic Channel Translation in a simple, easy-to-manage manner.*

{% hint style="info" %}
The group commands are interactive and require you to respond to any prompts correctly to function
{% endhint %}

## Command

You can use slash commands like `/group create` in order to create groups or use the commands listed bellow.

You can also use :&#x20;

* `/group link` to add a new channel with a new language on an existing group&#x20;
* `/group unlink`  to remove a language from the group automatic translation
* `/group list`  to list all the group you have created&#x20;
* `/group delete` to delete a group

### Video with slash command&#x20;

{% embed url="<https://ritabot.gg/images/lv_0_202402272252092.mp4>" %}

### Legacy commands (complex)

* **`!tr group`** ⬅ create new channel group
  * Respond with new group name, number of channels that should be in group, and for each channel prompt respond with channel language and ping which channel to assign
* **`!tr group link [GROUPNAME]`** ⬅ link a new channel into group
  * Respond to prompts by pinging which channel to add and what language to assign to that channel
* **`!tr group unlink [GROUPNAME]`** ⬅ delete a channel from group, opposite of group link
* **`!tr group delete [GROUPNAME]`** ⬅ delete entirety of group
* **`!tr group list`** ⬅ list all groups present in guild

### Parameters

* \[GROUPNAME] refers to the group name you give to the group (can check groups with `!tr group list`)

## Legacy Examples (complex)

#### Group Creation

<div align="right"><img src="https://2904601735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYAVk_hG8DjP4l7rB5Z%2Fuploads%2F60J2S0ERZ4VI9WrPanqN%2Fimage.png?alt=media&#x26;token=9f73292f-167e-4a02-bbe1-f786c90ee3fc" alt="Creating a group connects all the channels you assign to it interchangeably"></div>

#### Group List

<div align="right"><img src="https://2904601735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYAVk_hG8DjP4l7rB5Z%2Fuploads%2F1TEoBu8jWzgWpWKHdTBG%2Fimage.png?alt=media&#x26;token=36a77522-c5ff-404d-9c5f-d85fe0315653" alt="Lists all groups in server"></div>

#### Group Link

![Linking a channel links in the channel to all channels in the group](https://2904601735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYAVk_hG8DjP4l7rB5Z%2Fuploads%2FWPQathRPrtKoRVQhgM2e%2Fimage.png?alt=media\&token=9cfac54f-4c0e-4733-b7a8-043498090c9e)

#### Group Unlink

![Unlinking a channel does the opposite of linking a channel](https://2904601735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYAVk_hG8DjP4l7rB5Z%2Fuploads%2FPunv1oCpEZdluoFpbJGT%2Fimage.png?alt=media\&token=98b07666-e396-42a2-b663-b63ce8800c21)

#### Group Delete

![Deletes all tasks associated with group](https://2904601735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYAVk_hG8DjP4l7rB5Z%2Fuploads%2FF5tOG9cJXonRT9GcCOTx%2Fimage.png?alt=media\&token=b00e8e3e-b78c-4424-ad40-4f2c2d08c8ab)

## Notes

* There is a max of 15 channels/languages per group
* Groups cannot have repeats of languages or channels. All added channels and langs must be unique and not already in the group
* Languages should be in their ISO-639-1 format, list can be found [here](https://cloud.google.com/translate/docs/languages)
