W
W
Wolf_Yout2021-08-13 13:47:45
Python
Wolf_Yout, 2021-08-13 13:47:45

Dislash.py gets an error, what should I do?

Here is the code:

@slash.command(
name="play",
description="Начать воспроизведение",
)

async def play(inter):
 inter.send

I get an error on startup,
missing required positional argument: self
what should I do?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Stefan, 2021-08-13
@MEDIOFF

If your function is a class method, the first argument should be self:

async def play(self, inter):
 inter.send

Z
Zagir Majidov, 2021-08-17
@Zagir-vip

here is the code:

async def play(ctx, inter):
 inter.send('текст')

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question