From 48e53ab265ebf3024db9760f708b17a2de4a853d Mon Sep 17 00:00:00 2001 From: Barry O'Neill Date: Wed, 19 Apr 2023 15:50:58 -0400 Subject: [PATCH] reintroduce .server --- .../io/laserdisc/slack4s/slashcmd/SlashCommandBotBuilder.scala | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/scala/io/laserdisc/slack4s/slashcmd/SlashCommandBotBuilder.scala b/src/main/scala/io/laserdisc/slack4s/slashcmd/SlashCommandBotBuilder.scala index e034157..72bf00d 100644 --- a/src/main/scala/io/laserdisc/slack4s/slashcmd/SlashCommandBotBuilder.scala +++ b/src/main/scala/io/laserdisc/slack4s/slashcmd/SlashCommandBotBuilder.scala @@ -77,6 +77,8 @@ class SlashCommandBotBuilder[F[_]: Async] private[slashcmd] ( def withCommandMapper(commandParser: CommandMapper[F]): Self = copy(commandParser = Some(commandParser)) + final def serve: F[Nothing] = build.useForever + final def build: Resource[F, Server] = { def mkHttpService(cmdRunner: CommandRunner[F]): Resource[F, Server] =