fix: fixed extract_id being broken

This commit is contained in:
Seaswimmer 2023-08-08 10:34:01 -04:00
parent c22ad4e506
commit 672aad720e
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -101,7 +101,7 @@ class Galaxy(commands.Cog):
async def coco_emoji(self, interaction: discord.Interaction, emoji: str = None): async def coco_emoji(self, interaction: discord.Interaction, emoji: str = None):
"""Sets Coco's emoji.""" """Sets Coco's emoji."""
if emoji: if emoji:
emoji_id = self.extract_id(emoji) emoji_id = self.extract_id(input_string=emoji)
try: try:
emoji_obj = interaction.guild.fetch_emoji(emoji_id) emoji_obj = interaction.guild.fetch_emoji(emoji_id)
except discord.NotFound or discord.HTTPException as error: except discord.NotFound or discord.HTTPException as error: