This page includes useful Information about the bot and this documentation.
cc -> is a custom command
What is a parameter?
Parameters are Values, which a Function needs. To understand it let us see the usage of
Parameter 1 is a userid. a userid is an ID unique to that user. To get the userid we will use another function named $authorID, which returns the id of the executor
Parameter 2 is an roleid. To get the roleid, you can copy the id of the role you want to give or use an another function named
... -> stands for that the func can have more then 1 parameter.Every paramter (in this case roleid ) gets seperated with
$random[min;max;allowDecimals (yes/no)(optional, default=no)]
(optional -> this parameter is optional and the default value is
no You don't have to provide an optional parameter,if you use the default parameter
Okay, cool... But how do functions even work?
A function is a building block for your code. For example, if you want to send a message, you use a function called $channelSendMessage or $sendMessage. Or if you want to kick a member, you use a function called $kick
Nice, now I understand the basics! How do I proceed?
Now you understand the basic coding components, now we need to choose our trigger
|Triggertype||gets executed when a user,|
|Word||Sends a message|
|On Join/Leave||Joins or Leaves your server|
|On Reaction||Reacts on a message|
|Voice||Connects to or Disconnects from a VC|
|Timed or Interval||Repeated or Scheduled Execution|
|Button||Clicks a Discord button|
|Role add/remove||Recieves or Loses a role|
Fantastic, you made it through the hardest learning curve... Let's proceed
Now we can create our very first command! Let's go to this page