AAA3A-AAA3A / AAA3A-cogs

Many cogs for Red-DiscordBot.
https://aaa3a-cogs.readthedocs.io/en/latest
Other
35 stars 28 forks source link

[DropdownsTexts] Module `discord` has no attribute `PartialEmojia` (typo). #42

Closed nhatkgog closed 1 year ago

nhatkgog commented 1 year ago

What cog is this bug report for?

dropdownstexts

Describe the bug

I use the old version of dropdownstexts and it still loadable until i update the cog and get the error "module 'discord' has no attribute 'PartialEmojia' " I include the log when i try to load the updated dropdownstexts cog.

If there's an error, paste it here

redbot\core\core_commands.py", line 188, in _load
    await bot.load_extension(spec)
redbot\core\bot.py", line 1680, in load_extension
    lib = spec.loader.load_module()
          ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap_external>", line 605, in _check_name_wrapper
  File "<frozen importlib._bootstrap_external>", line 1120, in load_module
  File "<frozen importlib._bootstrap_external>", line 945, in load_module
  File "<frozen importlib._bootstrap>", line 290, in _load_module_shim
  File "<frozen importlib._bootstrap>", line 721, in _load
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
Redbot\cogs\CogManager\cogs\dropdownstexts\__init__.py", line 40, in <module>
    from .dropdownstexts import DropdownsTexts
Redbot\cogs\CogManager\cogs\dropdownstexts\dropdownstexts.py", line 13, in <module>
    from .converters import Emoji, EmojiLabelTextConverter
Redbot\cogs\CogManager\cogs\dropdownstexts\converters.py", line 16, in <module>
    class Emoji(commands.EmojiConverter):
line 19, in Emoji
    ) -> typing.Union[discord.PartialEmojia, str]:
                      ^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'discord' has no attribute 'PartialEmojia'