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] =