Functions
Functions can shorten code and make it faster.
You use it primary, if you know you will have something more times, for example getting member information, you will do it in multiple commands, then use function.
There are 2 types of functions
Normal function
This function will do something, and won´t return any value

This will send a message to channel saying that user bought a potato
Function with returning value

number is 0
Last updated
Was this helpful?