Skip to main content

πŸ”˜ 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.

info

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

info

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.

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.

Example of embeds sent every time a user join the discord server

danger

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.

This button allows you to link a CoC account to your discord account (see link-players)

Link account pop up

This button displays a tutorial to show how to link a player and how to find the API token.

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.

Roster​

Shows all the rosters your accounts are currently in.

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.