π Buttons
The goalβ
This command provides a way to add one or more buttons under an embeds. It can also allows you to send a specific embed when people join one of your clan, so you don't have to do it yourself ! There is currently 5 buttons available and you can select up to 4 buttons.
If you don't know what is an embed and how to create one with ClashKing, check embeds.md
The commandβ
The command is /buttons
.png)
Before running that command, you need to create an embeds.md
The parametersβ
Requiredβ
No parameters is required.
Optionnalβ
- embed : Choose the embeds.md you want to add buttons to. If you don't select an embed, an embed will be created depending on what buttons you chose.
 (1).png)
Embed by default for Link account buttons
- button_color : Choose between blue, green, grey and red. Default color is grey.
- on_welcome_channel : you can choose a channel on which the embed (with buttons or not) will be sent to every time someone join your Discord server. Only one embed can be set, so if you set a new one, it will replace the current one.
 (1).png)
Example of embeds sent every time a user join the discord server
For now there is no way to de activate the welcom message. If you want to remove it, create a new channel, set a welcom message on it, and delete the channel.
Buttons typeβ
Once you sent the command, you will be able to choose up to 4 buttons between those 5.
 (1).png)
Link Buttonβ
This button allows you to link a CoC account to your discord account (see link-players)
.png)
Link account pop up
Link help buttonβ
This button displays a tutorial to show how to link a player and how to find the API token.
.png)
Refresh rolesβ
The title is pretty clear, it allows you to refresh your roles if the bot didn't gave you a new role (yet).
To-Do Listβ
Shows what you have to do today on all your accounts. This includes Legends hits, Raids hits, Clan Games points, Season Pass points, Capital donations and Inactivity.
.png)
Rosterβ
Shows all the rosters your accounts are currently in.
.png)
Once your doneβ
Once you selected the buttons, if you didn't set on_welcome_channel, the embed will automatically be sent to the channel you run the command.
 (1).png)