Links & Verification
Linking connects a member’s Discord to their Clash of Clans account(s). It powers autoroles, rosters, reminders, to-do lists, and the “who is this?” lookups across ClashDuke. This page covers linking, verifying, coverage boards, the self-service onboarding kit, and auto-expanding pasted in-game links.
Link and manage Clash of Clans accounts.
| Subcommand | Purpose |
|---|---|
create |
Link a player account (add an API token to verify or claim it) |
list |
List a user’s linked accounts, or a clan’s link-coverage board |
default |
Choose which of your accounts is your main |
delete |
Unlink an account |
button |
Post a self-service “Link Account” button (Manage Server) |
greeting set / clear / show |
Manage the welcome message sent when a member links (Manage Server) |
welcome post / auto / disable / show |
Manage the onboarding button kit (Manage Server) |
/link create
Section titled “/link create”| Option | Type | Required | Description |
|---|---|---|---|
player_tag |
string | Yes | Player tag |
user |
user | No | User to link (staff only; default you) |
api_token |
string | No | In-game API token (Settings → More Settings → API Token) |
default |
boolean | No | Set as main account |
Adding a valid api_token marks the link verified and lets you claim an account
from a previous owner. Linking another member’s account (user) requires Manage
Server.
/link create player_tag:#9G8QCROV/link create player_tag:#9G8QCROV api_token:abc123 default:true/link list
Section titled “/link list”Without a clan, lists a user’s linked accounts. With a clan, shows a coverage
board of that clan’s members split by linked / not linked.
| Option | Type | Required | Description |
|---|---|---|---|
user |
user | No | User (default you) |
clan |
string (autocomplete) | No | Show a clan roster with who is / isn’t linked |
sort |
choice | No | Sort the coverage board: Name, Tag, Username, Town Hall |
/link list/link list user:@Chief/link list clan:#2PP sort:Town Hall/link default
Section titled “/link default”Pick which of your accounts is your main. With player_tag it sets it directly;
without, it shows a menu of your accounts. Only ever acts on your own links.
| Option | Type | Required | Description |
|---|---|---|---|
player_tag |
string (autocomplete) | No | Account to set as main (leave empty to pick from a menu) |
/link delete
Section titled “/link delete”Unlink an account — your own always, or anyone’s with Manage Server.
| Option | Type | Required | Description |
|---|---|---|---|
player_tag |
string (autocomplete) | Yes | Player tag, or pick a linked account |
/link button
Section titled “/link button”Posts a public Link Account button. Members click it and link themselves through a private pop-up form (they can paste an API token to verify). Requires Manage Server.
/link greeting
Section titled “/link greeting”A welcome message sent when a member successfully links an account. Requires Manage Server.
| Subcommand | Options |
|---|---|
set |
message (required, max 1000 chars) |
clear |
— |
show |
— |
The template supports these variables: {player}, {clan}, {user}, and {th}.
/link greeting set message:Welcome {user}! Linked {player} (TH{th}) in {clan}./link greeting show/link welcome
Section titled “/link welcome”An onboarding kit — a reusable button message (Link Account · Help · Refresh Roles · To-Do · My Rosters). Post it on demand or auto-post it when a member joins. Requires Manage Server.
| Subcommand | Options |
|---|---|
post |
channel (default: here) · message (custom intro, max 1000 chars) |
auto |
channel (required) · message (custom intro, max 1000 chars) |
disable |
— |
show |
— |
/link welcome post channel:#welcome/link welcome auto channel:#welcome/link welcome disable/verify
Section titled “/verify”Verify account ownership with your in-game API token. Verifying proves ownership, so it claims the account from any prior owner. This reply is always private (ephemeral).
| Option | Type | Required | Description |
|---|---|---|---|
player_tag |
string | Yes | Player tag |
token |
string | Yes | Settings → More Settings → API Token |
/verify player_tag:#9G8QCROV token:abc123In Clash of Clans: Settings → More Settings → API Token. Copy the token at the bottom.
Paste your player tag and token. ClashDuke checks the token and links the account as verified.
Verified links can’t be claimed by anyone else without their own token — they’re yours.
/discord-links
Section titled “/discord-links”A clan’s Discord-link coverage board: members grouped into In this server, Linked, not in server, and Not linked, each with a verified badge, Town Hall, and mention.
| Option | Type | Required | Description |
|---|---|---|---|
clan |
string (autocomplete) | No | Clan tag, or a linked clan |
sort |
choice | No | Sort the board: Name, Tag, Username, Town Hall |
The reply has a sort button, and a Switch clan… dropdown when the server has more than one linked clan.
/discord-links clan:#2PP/discord-links clan:#2PP sort:Town HallAuto link-parsing
Section titled “Auto link-parsing”When enabled, ClashDuke watches for pasted in-game share links and expands them into compact rich embeds in the channel — no slash command needed. It recognises:
- Player profile links → a compact player embed
- Clan profile links → a compact clan embed
- Army links (“Copy Army Link”) → an army embed with a Copy Army Link button
- Base layout links (“Copy Link”) → a layout card with an Open Layout button
Turn it on with /setup link-parse mode:enable.