Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

Commit 5ba2015

Browse files
committed
#54 Bug fixes Emoji is None
-
1 parent 23658f6 commit 5ba2015

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

utils/valorant/resources.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
}
4343

4444
points = {
45-
'ValorantPoint':f'<:ValorantPoint:950365917613817856>',
46-
'RadianitePoint':f'<:RadianitePoint:950365909636235324>'
45+
'ValorantPointIcon':f'<:ValorantPoint:950365917613817856>',
46+
'RadianitePointIcon':f'<:RadianitePoint:950365909636235324>'
4747
}
4848

4949
def get_item_type(uuid: str):

utils/valorant/useful.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ def tier_by_bot(cls, skin_uuid: str, bot: commands.Bot) -> discord.Emoji:
223223
return cls.tier(skin_uuid)
224224
return emoji
225225

226-
def point_by_bot(point: Literal['ValorantPointIcon', 'RadianitePointIcon'], bot: commands.Bot) -> discord.Emoji:
226+
def point_by_bot(point: str, bot: commands.Bot) -> discord.Emoji:
227227
emoji = discord.utils.get(bot.emojis, name=point)
228228
if emoji is None:
229229
return points_emoji.get(point)

0 commit comments

Comments
 (0)