Skip to content

Commit c443200

Browse files
authored
Merge pull request #55 from A-Baji/dev
3.0.2
2 parents c7e00bb + 985ecb9 commit c443200

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
Observes [Semantic Versioning](https://semver.org/spec/v2.0.0.html) standard and [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) convention.
44

5+
## [3.0.2] - 07-16-2024
6+
7+
### Fixed
8+
9+
- bug where custom slash commands would return error due to emoji map issues
10+
511
## [3.0.1] - 07-16-2024
612

713
### Changed
@@ -119,6 +125,7 @@ Observes [Semantic Versioning](https://semver.org/spec/v2.0.0.html) standard and
119125

120126
- modified readme
121127

128+
[3.0.2]: https://github.com/A-Baji/discordAI/compare/3.0.1...3.0.2
122129
[3.0.1]: https://github.com/A-Baji/discordAI/compare/3.0.0...3.0.1
123130
[3.0.0]: https://github.com/A-Baji/discordAI/compare/2.0.1...3.0.0
124131
[2.0.1]: https://github.com/A-Baji/discordAI/compare/1.3.2...2.0.1

discordai/template.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
1616
def replace_emoji(emoji_name: str, emoji_map):
1717
emoji = emoji_name.lower()
18-
emoji_id = emoji_map[emoji]["id"]
19-
emoji_name = emoji_map[emoji]["name"]
20-
is_animated = emoji_map[emoji]["is_animated"]
2118
if emoji in emoji_map:
19+
emoji_id = emoji_map[emoji]["id"]
20+
emoji_name = emoji_map[emoji]["name"]
21+
is_animated = emoji_map[emoji]["is_animated"]
2222
return f"<{{'a' if is_animated else ''}}:{{emoji_name}}:{{emoji_id}}>"
2323
else:
2424
return f":{{emoji_name}}:"

discordai/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "3.0.1"
1+
__version__ = "3.0.2"

0 commit comments

Comments
 (0)