> For the complete documentation index, see [llms.txt](https://docs.clashperk.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.clashperk.com/others/commands.md).

# Commands

Every ClashPerk slash command for Clash of Clans on Discord, grouped by feature, with options and links to the setup guides.

ClashPerk works through Discord slash commands. Type `/` in a channel ClashPerk can see, then pick a command. New to the bot? Start with [How to Set Up ClashPerk on Discord](https://docs.clashperk.com/overview/getting-set-up.md).

## Command groups

| Group                                                                     | What it's for                                                                                        |
| ------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| [/alias](https://docs.clashperk.com/others/commands/alias.md)             | Give your clans short names, so you can type an alias instead of a clan tag.                         |
| [/autorole](https://docs.clashperk.com/others/commands/autorole.md)       | Give Discord roles automatically from members' clan roles, Town Halls, leagues and wars.             |
| [/caller](https://docs.clashperk.com/others/commands/caller.md)           | Call war targets, so clan members know which base each player will attack.                           |
| [/capital](https://docs.clashperk.com/others/commands/capital.md)         | See clan capital contributions and raid weekend scores of your clan members.                         |
| [/category](https://docs.clashperk.com/others/commands/category.md)       | Group the clans linked to your server into named categories.                                         |
| [/cwl](https://docs.clashperk.com/others/commands/cwl.md)                 | Clan War League stats for your clan: lineups, attacks, stars, rounds and group standings.            |
| [/export](https://docs.clashperk.com/others/commands/export.md)           | Export clan, war, CWL, capital and roster stats to a spreadsheet.                                    |
| [/flag](https://docs.clashperk.com/others/commands/flag.md)               | Mark players as banned or flagged, and list or remove those flags.                                   |
| [/giveaway](https://docs.clashperk.com/others/commands/giveaway.md)       | Run giveaways with an Enter button, then draw, reroll or cancel them.                                |
| [/layout](https://docs.clashperk.com/others/commands/layout.md)           | Post village layouts to share them, and choose how layout posts work on your server.                 |
| [/leaderboard](https://docs.clashperk.com/others/commands/leaderboard.md) | Top clan, player and clan capital leaderboards.                                                      |
| [/legend](https://docs.clashperk.com/others/commands/legend.md)           | Legend League attacks per day, leaderboards and trophy stats.                                        |
| [/link](https://docs.clashperk.com/others/commands/link.md)               | Link Clash of Clans player accounts and clans to Discord users, and list or remove links.            |
| [/nickname](https://docs.clashperk.com/others/commands/nickname.md)       | Set Discord nicknames automatically from members' linked accounts.                                   |
| [/reminders](https://docs.clashperk.com/others/commands/reminders.md)     | Remind members who still have war attacks, raid attacks or Clan Games points left.                   |
| [/roster](https://docs.clashperk.com/others/commands/roster.md)           | Run CWL and war signup rosters: create and post them, manage members and groups, and ping them.      |
| [/setup](https://docs.clashperk.com/others/commands/setup.md)             | Set up ClashPerk on your server: link clans, and turn on logs, buttons and events.                   |
| [/stats](https://docs.clashperk.com/others/commands/stats.md)             | Attack success and defense failure rates of your clan members.                                       |
| [/summary](https://docs.clashperk.com/others/commands/summary.md)         | Summaries across every clan linked to your server: wars, CWL, donations, activity, capital and more. |
| [/ticket](https://docs.clashperk.com/others/commands/ticket.md)           | Set up ticket panels and manage ticket channels for applications and support.                        |

## Other commands

| Command                                                                             | What it does                                                                 |
| ----------------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
| [/activity](https://docs.clashperk.com/others/commands/activity.md)                 | Shows a graph of hourly-active clan members.                                 |
| [/army](https://docs.clashperk.com/others/commands/army.md)                         | Parse an army composition link.                                              |
| [/attacks](https://docs.clashperk.com/others/commands/attacks.md)                   | Displays attack and defense info of clan members.                            |
| [/boosts](https://docs.clashperk.com/others/commands/boosts.md)                     | Displays active super troops of clan members.                                |
| [/bot-personalizer](https://docs.clashperk.com/others/commands/bot-personalizer.md) | Build your own Discord bot!                                                  |
| [/clan](https://docs.clashperk.com/others/commands/clan.md)                         | Shows comprehensive overview of a clan.                                      |
| [/clan-games](https://docs.clashperk.com/others/commands/clan-games.md)             | Clan games scoreboard of clan members.                                       |
| [/clans](https://docs.clashperk.com/others/commands/clans.md)                       | Show all linked clans.                                                       |
| [/compo](https://docs.clashperk.com/others/commands/compo.md)                       | Shows Town Hall composition of a clan.                                       |
| [/config](https://docs.clashperk.com/others/commands/config.md)                     | Configure server settings.                                                   |
| [/debug](https://docs.clashperk.com/others/commands/debug.md)                       | Displays some basic debug information.                                       |
| [/donations](https://docs.clashperk.com/others/commands/donations.md)               | Shows donations and donations received of clan members.                      |
| [/events](https://docs.clashperk.com/others/commands/events.md)                     | Shows the next in-game events.                                               |
| [/help](https://docs.clashperk.com/others/commands/help.md)                         | Get a list of commands or info about a specific command.                     |
| [/history](https://docs.clashperk.com/others/commands/history.md)                   | Clan Games, Capital Raids, Donations, and CWL attacks history.               |
| [/invite](https://docs.clashperk.com/others/commands/invite.md)                     | Get the bot invite and support server link.                                  |
| [/lastseen](https://docs.clashperk.com/others/commands/lastseen.md)                 | The last seen time and activities of clan members.                           |
| [/lineup](https://docs.clashperk.com/others/commands/lineup.md)                     | Displays war line-up of a clan.                                              |
| [/members](https://docs.clashperk.com/others/commands/members.md)                   | Get a clan member list with heroes, trophies, war preferences and much more. |
| [/patreon](https://docs.clashperk.com/others/commands/patreon.md)                   | Shows information about the bot's Patreon.                                   |
| [/player](https://docs.clashperk.com/others/commands/player.md)                     | Player summary and overview.                                                 |
| [/profile](https://docs.clashperk.com/others/commands/profile.md)                   | Shows linked accounts and clan of a user.                                    |
| [/redeem](https://docs.clashperk.com/others/commands/redeem.md)                     | Redeem or manage a Patreon subscription. (if you wish to support us)         |
| [/remaining](https://docs.clashperk.com/others/commands/remaining.md)               | Shows remaining or missed war hits of a clan.                                |
| [/rushed](https://docs.clashperk.com/others/commands/rushed.md)                     | Rushed units and rushed % of a player or clan members.                       |
| [/search](https://docs.clashperk.com/others/commands/search.md)                     | Search clans by name.                                                        |
| [/status](https://docs.clashperk.com/others/commands/status.md)                     | Shows information about the bot's status.                                    |
| [/timezone](https://docs.clashperk.com/others/commands/timezone.md)                 | Set your timezone offset for /activity command.                              |
| [/units](https://docs.clashperk.com/others/commands/units.md)                       | Shows home village and builder base units of a player (with max/min levels)  |
| [/upgrades](https://docs.clashperk.com/others/commands/upgrades.md)                 | Remaining upgrades of a player with upgrading cost.                          |
| [/verify](https://docs.clashperk.com/others/commands/verify.md)                     | Verify and link a player account using an API token.                         |
| [/war](https://docs.clashperk.com/others/commands/war.md)                           | Shows war summary and overview of a clan.                                    |
| [/warlog](https://docs.clashperk.com/others/commands/warlog.md)                     | Shows the last 10 clan war logs.                                             |
| [/whitelist](https://docs.clashperk.com/others/commands/whitelist.md)               | Whitelist a role or user to use specific commands.                           |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.clashperk.com/others/commands.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
