from discord_components import DiscordComponents, Button
Когда я импортирую что-то из discord_components, мне выдаёт ошибку
Как это справить?
C:\Users\1\Desktop>python Discord.py
Traceback (most recent call last):
File "C:\Users\1\Desktop\Discord.py", line 7, in <module>
from discord_components import DiscordComponents
File "C:\Users\1\AppData\Local\Programs\Python\Python39\lib\site-packages\discord_components\__init__.py", line 1, in <module>
from .client import *
File "C:\Users\1\AppData\Local\Programs\Python\Python39\lib\site-packages\discord_components\client.py", line 12, in <module>
from .component import Component
File "C:\Users\1\AppData\Local\Programs\Python\Python39\lib\site-packages\discord_components\component.py", line 3, in <module>
from discord import PartialEmoji, Emoji, InvalidArgument
ImportError: cannot import name 'InvalidArgument' from 'discord' (C:\Users\1\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\__init__.py)