packages feed

discord-haskell 0.8.0 → 0.8.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 +### 0.8.1++[MP2E](https://github.com/aquarial/discord-haskell/pull/11) Fixed parse error on GuildRoleDelete: role_id instead of role+ ### 0.8.0  `MessageUpdate` does not contain a full Message object, just `ChannelId` `MessageId`
discord-haskell.cabal view
@@ -1,6 +1,6 @@ name:                discord-haskell -- library version is also noted at src/Discord/Rest/Prelude.hs-version:             0.8.0+version:             0.8.1 synopsis:            Write bots for Discord in Haskell description:         Functions and data types to write discord bots.                      Official discord docs <https://discordapp.com/developers/docs/reference>.
src/Discord/Rest/Prelude.hs view
@@ -24,7 +24,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, 0.8.0)"+  agent = "DiscordBot (https://github.com/aquarial/discord-haskell, 0.8.1)"  -- Append to an URL infixl 5 //
src/Discord/Types/Events.hs view
@@ -139,7 +139,7 @@     "GUILD_MEMBER_CHUNK"        -> GuildMemberChunk <$> o .: "guild_id" <*> o .: "members"     "GUILD_ROLE_CREATE"         -> GuildRoleCreate  <$> o .: "guild_id" <*> o .: "role"     "GUILD_ROLE_UPDATE"         -> GuildRoleUpdate  <$> o .: "guild_id" <*> o .: "role"-    "GUILD_ROLE_DELETE"         -> GuildRoleDelete  <$> o .: "guild_id" <*> o .: "role"+    "GUILD_ROLE_DELETE"         -> GuildRoleDelete  <$> o .: "guild_id" <*> o .: "role_id"     "MESSAGE_CREATE"            -> MessageCreate     <$> reparse o     "MESSAGE_UPDATE"            -> MessageUpdate     <$> o .: "channel_id" <*> o .: "id"     "MESSAGE_DELETE"            -> MessageDelete     <$> o .: "channel_id" <*> o .: "id"