getGlobalCommands method

List<AbstractCommand<CommandInteraction>> getGlobalCommands()

Implementation

List<AbstractCommand> getGlobalCommands () {
  return List<AbstractCommand>.from(_commands.values.where((element) => element.scope?.mode == CommandScope.global.mode));
}