K
K
kisman20002021-07-04 17:32:14
Java
kisman2000, 2021-07-04 17:32:14

JDA how to send a message after enabling bot?

I use Java for the bot and accordingly jda, and I want that when the bot is turned on, it sends a message to a specific channel on a specific server, I'm trying to use

jda.awaitready().getGuildsById("id").getChanellsById("id").sendmessage("message").submit();
as a result, the message was not sent.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question