Fix custom emoji logic
This commit is contained in:
parent
07ee720063
commit
0985653a75
@ -94,14 +94,13 @@ class StickerAdder:
|
|||||||
await self.__wait_for()
|
await self.__wait_for()
|
||||||
|
|
||||||
async def send_emoji(self) -> None:
|
async def send_emoji(self) -> None:
|
||||||
if self._msg.reply_to_message.sticker:
|
_, arg = Parameters.get(self._msg)
|
||||||
|
if emoji.is_emoji(arg):
|
||||||
|
an_emoji = arg
|
||||||
|
elif self._msg.reply_to_message.sticker:
|
||||||
an_emoji = self._msg.reply_to_message.sticker.emoji
|
an_emoji = self._msg.reply_to_message.sticker.emoji
|
||||||
else:
|
else:
|
||||||
_, arg = Parameters.get(self._msg)
|
an_emoji = '⚡️'
|
||||||
if emoji.is_emoji(arg):
|
|
||||||
an_emoji = arg
|
|
||||||
else:
|
|
||||||
an_emoji = '⚡️'
|
|
||||||
await self.send_message(an_emoji)
|
await self.send_message(an_emoji)
|
||||||
|
|
||||||
async def send_retries(self, n: int) -> None:
|
async def send_retries(self, n: int) -> None:
|
||||||
|
Loading…
Reference in New Issue
Block a user