From ab02c95c67facba51c0eeaf6a77f02f1775cd3dd Mon Sep 17 00:00:00 2001 From: Trivernis Date: Sun, 3 Mar 2019 12:40:52 +0100 Subject: [PATCH 1/2] Updated package.json version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7714112..5fc1570 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "discordbot", - "version": "0.9.1", + "version": "0.10.1", "scripts": { "start": "node bot.js", "test": "mocha --exit", From 2bb17e7e517d8300587ee42c8b1edd7b37483601 Mon Sep 17 00:00:00 2001 From: Trivernis Date: Sun, 3 Mar 2019 12:53:41 +0100 Subject: [PATCH 2/2] Critical Bugfixes --- CHANGELOG.md | 5 +++++ lib/CommandLib.js | 2 ++ 2 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ca41d7..695e5fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ All notable changes to the discord bot will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.10.1] - 2019-03-03 +### Changed +- Bugfix on RichEmbed not returning itself on addField and setDescription because of method overide +- AniList CommandModule bug fix on `~alCharacter` not returning voice actor names + ## [0.10.0] - 2019-03-03 ### Added - AniList api commands powered by [AniList.co](https://www.anilist.co) diff --git a/lib/CommandLib.js b/lib/CommandLib.js index 527c794..3889ca1 100644 --- a/lib/CommandLib.js +++ b/lib/CommandLib.js @@ -253,6 +253,7 @@ class ExtendedRichEmbed extends Discord.RichEmbed { if (croppedValue.length < value.length) croppedValue = croppedValue.replace(/\n.*$/g, ''); super.setDescription(croppedValue); + return this; } /** @@ -267,6 +268,7 @@ class ExtendedRichEmbed extends Discord.RichEmbed { if (croppedValue.length < value.length) croppedValue = croppedValue.replace(/\n.*$/g, ''); super.addField(name, croppedValue); + return this; } }