of

open fun of(enabledCommandsStrs: Collection<String>): CommandList(source)

Makes a list of usable commands (in a Guild context), You have to insert full commands paths such as name group subcommand, which comes from the Discord representation of /name group subcommandThis is constructed by joining each path component with a space Keep in mind you cannot enable global commands on a per-guild basis

Return

A CommandList of enabled command

Parameters

enabledCommandsStrs

A collection of enabled command paths