$log
Premium
Logs an error message to the bot logs upon encountering a specific issue (Type
parameter).
Syntax
$log[Text;(Type)]
Parameters
Log Message
(Type: String || Flag: Required)
: The text to be output to the logs.Type
(Type: Enum || Flag: Optional)
: The log type to be displayed. Default isinfo
.
Log Types
success
: Green colorinfo
: Blue colorwarning
: Yellow colorerror
: Red colorbdscript
: Can’t be used in$log[]
function. Appears automatically when an error is made in the code. Can be disabled by$suppressErrorLogging
.- Default input for “
Type
” parameter isinfo
.
Example
$nomention
Hello world!
$log[$username used secret command!]
- In the BDFD Web App:
How $username
works?