packages feed

discord-haskell 1.1.0 → 1.1.1

raw patch · 4 files changed

+7/−3 lines, 4 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

changelog.md view
@@ -4,6 +4,10 @@  ## master +## 1.1.1++Fix ModifyGuildRolePositions results in 400 Bad Request issue+ ## 1.1.0  Upgrade req to 2.x major version.
discord-haskell.cabal view
@@ -1,7 +1,7 @@ cabal-version:       2.0 name:                discord-haskell -- library version is also noted at src/Discord/Rest/Prelude.hs-version:             1.1.0+version:             1.1.1 description:         Functions and data types to write discord bots.                      Official discord docs <https://discordapp.com/developers/docs/reference>.                      .
src/Discord/Internal/Rest/Guild.hs view
@@ -418,7 +418,7 @@    (ModifyGuildRolePositions guild patch) ->       let body = map (\(role, pos) -> object ["id".=role, "position".=pos]) patch-      in Post (guilds // guild /: "roles") (pure (R.ReqBodyJson body)) mempty+      in Patch (guilds // guild /: "roles") (R.ReqBodyJson body) mempty    (ModifyGuildRole guild role patch) ->        Post (guilds // guild /: "roles" // role) (pure (R.ReqBodyJson patch)) mempty
src/Discord/Internal/Rest/Prelude.hs view
@@ -25,7 +25,7 @@   where   -- | https://discordapp.com/developers/docs/reference#user-agent   -- Second place where the library version is noted-  agent = "DiscordBot (https://github.com/aquarial/discord-haskell, 1.1.0)"+  agent = "DiscordBot (https://github.com/aquarial/discord-haskell, 1.1.1)"  -- Append to an URL infixl 5 //