Skip to content

Commit

Permalink
Merge pull request #110 from derpyplops/master
Browse files Browse the repository at this point in the history
Fix bug on PlainTextInput
  • Loading branch information
paulpdaniels authored Jan 22, 2021
2 parents ca3bf5e + e3a628d commit 52c9659
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ vuepress/node_modules/*
*.lock
vuepress/package-lock.json

/.bsp/
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@ For Scala 2.12.x and 2.13.x

zio-slack is a library for interfacing with slack using an idiomatic and easily discoverable interface.

We define most of the methods defined here: https://api.slack.com/methods (Working toward 100% coverage!). If there is one missing or you find a bug in how it is implemented please submit an issue or PR (There are *a lot* of methods to cover and automated coverage isn't fully available yet).
We define most of the methods defined here: https://api.slack.com/methods (Working toward 100% coverage!). If there is one missing, or you find a bug in how it is implemented please submit an issue or PR (There are *a lot* of methods to cover and automated coverage isn't fully available yet).

Usage
--

Usage is quite simple. First you can define how you would like to interact with slack. For instance, say you periodically wanted to send chuck norris jokes to random channels (...please don't).
Usage is quite simple. First you can define how you would like to interact with slack. For instance, say you periodically wanted to send Chuck Norris jokes to random channels (...please don't).

Since we will be sending messages we will be using the `chats` api which we can import like so:

```scala
import slack.api.chats._
import com.github.dapperware.slack.api.chats._
```

Note that you can pull in the functionality piecemeal like above or all at once using `slack.api.web._` you can even pull in individual methods! The beauty of ZIO is that all the methods just return effects so there is no need to instantiate anything until you are ready to execute it.
Expand Down Expand Up @@ -62,9 +62,9 @@ You may have noticed that this is now returning compiler errors saying that it e
```scala
import io.circe
import io.circe.Json
import slack.api.chats._
import slack.access.AccessToken
import slack.core.client.SlackClient
import com.github.dapperware.slack.api.chats._
import com.github.dapperware.slack.access.AccessToken
import com.github.dapperware.slack.core.client.SlackClient
import sttp.client._
import sttp.client.asynchttpclient.zio.AsyncHttpClientZioBackend
import sttp.client.circe._
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ case class PlainTextInput(
min_length: Option[Int] = None,
max_length: Option[Int] = None,
dispatch_action_config: Option[DispatchActionConfig] = None
) extends InputBlockElement
) extends BlockElement with InputBlockElement {
override val `type` = "plain_text_input"
}

case class DispatchActionConfig(trigger_actions_on: List[TriggerAction])

Expand Down

0 comments on commit 52c9659

Please sign in to comment.