R
R
RieldaBot2021-12-03 19:21:01
Python
RieldaBot, 2021-12-03 19:21:01

Discord.py | how to send a message that is written in the command?

I can’t find how to make the bot write a message that the user wrote,
for example *send 'any text' and the bot sends this text

example in the photo:
61aa43aaf2787140126498.png
61aa43b60b553386419497.png

don't hit with sticks, I'm at the junior level in python, so I'm asking (ask).

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vindicar, 2021-12-03
@Vindicar

I searched badly.
You find the desired channel by id , the text channel has a send() method .

D
DevMan, 2015-05-20
@Coderast

maybe instacod.es can resist you

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question