Skip to content

Commit

Permalink
Merge pull request #55 from A-Baji/dev
Browse files Browse the repository at this point in the history
3.0.2
  • Loading branch information
A-Baji authored Jul 16, 2024
2 parents c7e00bb + 985ecb9 commit c443200
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

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

## [3.0.2] - 07-16-2024

### Fixed

- bug where custom slash commands would return error due to emoji map issues

## [3.0.1] - 07-16-2024

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

- modified readme

[3.0.2]: https://github.com/A-Baji/discordAI/compare/3.0.1...3.0.2
[3.0.1]: https://github.com/A-Baji/discordAI/compare/3.0.0...3.0.1
[3.0.0]: https://github.com/A-Baji/discordAI/compare/2.0.1...3.0.0
[2.0.1]: https://github.com/A-Baji/discordAI/compare/1.3.2...2.0.1
Expand Down
6 changes: 3 additions & 3 deletions discordai/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
def replace_emoji(emoji_name: str, emoji_map):
emoji = emoji_name.lower()
emoji_id = emoji_map[emoji]["id"]
emoji_name = emoji_map[emoji]["name"]
is_animated = emoji_map[emoji]["is_animated"]
if emoji in emoji_map:
emoji_id = emoji_map[emoji]["id"]
emoji_name = emoji_map[emoji]["name"]
is_animated = emoji_map[emoji]["is_animated"]
return f"<{{'a' if is_animated else ''}}:{{emoji_name}}:{{emoji_id}}>"
else:
return f":{{emoji_name}}:"
Expand Down
2 changes: 1 addition & 1 deletion discordai/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "3.0.1"
__version__ = "3.0.2"

0 comments on commit c443200

Please sign in to comment.