Answer the question
In order to leave comments, you need to log in
Dislash.py gets an error, what should I do?
Here is the code:
@slash.command(
name="play",
description="Начать воспроизведение",
)
async def play(inter):
inter.send
missing required positional argument: self
Answer the question
In order to leave comments, you need to log in
If your function is a class method, the first argument should be self:
async def play(self, inter):
inter.send
here is the code:
async def play(ctx, inter):
inter.send('текст')
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question