File "D:\botjs\main.py", line 2, in <module>
import discord
File "C:\Users\egorl\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\__init__.py", line 25, in <module>
from .client import Client
File "C:\Users\egorl\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\client.py", line 53, in <module>
from .webhook import Webhook
File "C:\Users\egorl\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\webhook\__init__.py", line 12, in <module>
from .async_ import *
File "C:\Users\egorl\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\webhook\async_.py", line 49, in <module>
from ..channel import PartialMessageable
ImportError: cannot import name 'PartialMessageable' from 'discord.channel' (C:\Users\egorl\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\channel.py)
PS D:\botjs>
aiohttp==3.8.1
aiosignal==1.2.0
async-timeout==4.0.2
attrs==21.4.0
certifi==2021.10.8
chardet==4.0.0
charset-normalizer==2.0.12
click==8.1.2
colorama==0.4.4
config==0.5.1
config-json==0.0.3
discord-py-slash-command==4.2.1
discord.js==1.0.7
discord.py==1.7.3
dislash.py==1.4.9
dnspython==2.2.1
Flask==2.1.1
frozenlist==1.3.0
idna==3.3
itsdangerous==2.1.2
javascriptpy==1.1.6
Jinja2==3.1.1
MarkupSafe==2.1.1
multidict==6.0.2
Pillow==9.1.1
py-cord==2.0.0b1
pymongo==4.0.2
python-utils==3.1.0
requests==2.27.1
typing_extensions==4.1.1
urllib3==1.26.9
utils==1.0.1
Werkzeug==2.1.1
yarl==1.7.2
Traceback (most recent call last):
File "C:\Users\egorl\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\ext\commands\bot.py", line 335, in invoke
await ctx.command.invoke(ctx)
File "C:\Users\egorl\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\ext\commands\core.py", line 916, in invoke
await injected(*ctx.args, **ctx.kwargs)
File "C:\Users\egorl\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\ext\commands\core.py", line 188, in wrapped
raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: TypeError: 'Asset' object is not callable
WOKCommands > Loaded 6 commands.
D:\botjs\node_modules\discord.js\src\rest\RequestHandler.js:350
throw new DiscordAPIError(data, res.status, request);
^
DiscordAPIError: Interaction has already been acknowledged.
import { ButtonInteraction, Interaction, MessageActionRow, MessageButton, MessageEmbed } from "discord.js"
import { ICommand } from "wokcommands"
const embed1 = new MessageEmbed()
// Заглавие
.setTitle("Игра!")
// Описание
.setDescription("Игра орёл и решка. Какую сторону монетки ты выберешь? Орёл или решка?")
// Цвет
.setColor('#FCF300')
const row = new MessageActionRow()
.addComponents(
new MessageButton()
.setCustomId("button_yes")
.setEmoji("✅")
.setLabel("Играть")
.setStyle("SUCCESS")
)
.addComponents(
new MessageButton()
.setCustomId("button_no")
.setEmoji("❎")
.setLabel("Отмена")
.setStyle("DANGER")
)
const row_1 = new MessageActionRow()
.addComponents(
new MessageButton()
.setCustomId("button_orel")
.setEmoji("")
.setLabel("Орёл")
.setStyle("SUCCESS")
)
.addComponents(
new MessageButton()
.setCustomId("button_reshka")
.setEmoji("")
.setLabel("Решка")
.setStyle("DANGER")
)