registerGlobalCommands method

Future<void> registerGlobalCommands({
  1. required List<CommandBuilder> commands,
})

Implementation

Future<void> registerGlobalCommands ({ required List<CommandBuilder> commands }) async {
  await ioc.use<HttpService>().put(
    url: "/applications/${_application.id}/commands",
    payload: commands.map((command) => command.toJson).toList()
  );
}