#Don't you drive the message
1 messages · Page 1 of 1 (latest)
what?
help please
I'm trying to make this command output as a message, but it doesn't work, please help bro
add self as first arg
send code
async def pp(self, inter)
really?
no images containing only text pleaes
no - images - .
that's ur problem, kek
sorry
lmao no
did u add self?
But I saw that others have photos
and?
not
did u solve ur problem?
No, I didn't understand much, maybe I'll send you this code and you edit it?
only publicly
I mean
?
But the person is not yet a rock by the type of ok
So I understand no?
Few things wrong here...
Missing commas in kwargs
Two responses
Missing self as first arg
Might be there, but no setup function in the ss.
...
Of course, thank you for your help, but I don't understand you much by the type of where and what needs to be added.
@unborn tendon @compact mason sorry for the ping, but can you tell me again what exactly needs to be fixed there
I said
.
And this
well, can I please tell you in more detail
I think you don't know python basic
Yes it is, I am studying it for this I asked for help
I think you just copy pasted the code from somewhere
^
Out here trying to build a bird house, but haven't learned how to use a hammer or read the instructions.
No I wrote it myself
:/
That's if that's the code
@commands.slash_command(description="Multiplies the number by 7")
async def ppp(inter, name=None, time=None, prize1=None, prize2=None):
await inter.response.send_message(name=name, time=time, prize1=prize1, prize2=prize2)
await inter.response.send_message(
embed=disnake.Embed(
title="Events",
description=f"{name}, {time}, {prize1}, {prize2}",
colour=0xF0C43F,
)
)
Add self pls
it's like
?
follow this link
this is where
this is where
Wut
this is where
Cog is a class. Methods inside the class should have self as the first argument.
def some_meth(self, ...):
Should also have a setup function when using cogs
Interactions can only be responded to once:
inter.response.send_message is considered a response
https://learnpython.org
https://guide.disnake.dev
https://docs.disnake.dev
send_message does not take an unlimited amount of args
-d InteractionResponse.send_message
await send_message(content=None, *, embed=..., embeds=..., file=..., files=..., allowed_mentions=..., view=..., components=..., tts=False, ephemeral=..., suppress_embeds=..., flags=..., delete_after=...)```
This function is a [*coroutine*](https://docs.python.org/3/library/asyncio-task.html#coroutine).
Responds to this interaction by sending a message.
Yes, I'm not an American or an Englishman, I'm Russian, I can't find out exactly what you wrote, so I'm asking you to just change the code
We won't write code for you
I understand, but I ask you to correct this I do not understand
Just tell me what's wrong there exactly the line where you need to change and what needs to be done there
Русское сообщество: https://discord.gg/RrpKVNuRCc
Oh finally thank you because my stupid friend threw off your ds server