Package com.inet.cowork.api.commands
Interface CoWorkCommandProvider
-
public interface CoWorkCommandProvider
Provider of possible commands. Must be registered in ServerPluginManager. You must return which commands your bot provides to CoWork, given a specific channel.- Since:
- 23.4
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<CommandDescription>
getCommands(com.inet.id.GUID channelID)
Returns a list of commands this provider offers.
-
-
-
Method Detail
-
getCommands
@Nullable java.util.List<CommandDescription> getCommands(com.inet.id.GUID channelID)
Returns a list of commands this provider offers.- Parameters:
channelID
- the id of the channel the commands are requested for.null
may be called for listing global commands.- Returns:
- the list of command descriptions this provider offers
- Since:
- 23.4
-
-