P
P
Pasha2021-08-20 11:25:17
C++ / C#
Pasha, 2021-08-20 11:25:17

How to make automatic sending of messages by the bot itself in discord in C#?

Hello guys, I am learning how to write bots in C#. And I had a problem, I wrote a bot in ds and I need the bot to send a message to the text channel with a FAQ about itself when I enter the server, but I don’t know how to do this, I searched the Internet and didn’t find anything, I even tried to invent bike, but nothing happened, please help, I will be very grateful. Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vindicar, 2021-08-20
@Vindicar

I understand that there is a library for working with discord?
There for certain the mechanism of reaction to events is provided.
Look in its documentation for either the "added to server" event or the "connected" event, depending on what you mean by entering the server.
Then add a handler for the desired event, and do what is required in it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question