getToken

fun getToken(argToken: String? = null): String

Retrieves the Discord bot token.

Return

The Discord bot token as a String.

Parameters

argToken

Optional token passed as a command-line argument.

Throws

if no token is found in the argument, file, or environment variable.