Why is my java function not calling from the output of another class?

I’m coding a discord bot to be used within a private server just to mess around with. It is my first experience with java. I am using the Discord JDA Library to code the bot. I don’t think that is the …

onMessageReceived() not being called | Discord Bot

I am making my first Discord bot with Java. I am using Gradle. Here is my code so far: public class Main extends ListenerAdapter { public static void main(String[] args) throws LoginException { …

See if a message mentions @here

I want to see if a message mentions @here on Discord using the JDA library for Java. I can already see if a message mentions @everyone using net.dv8tion.jda.api.entities.Message#mentionsEveryone() but …

JDA ChannelManager setname Channel view online stats

After joining discord, the channel should refresh and show the new number of players online. After executing twice, the channel does not refresh again. public void onGuildMemberJoin(@Nonnull …

String contents not being replaced within the same method as string declaration. (JDA)

I am trying to store a randomly generated string in a string variable to use for in for other things. Basically, it is a password generator that stores the password for use with commands that need it. …

Check if user is banned or not

I cant seem to figure out how to check if a user is already banned if tried this event.getGuild().retrieveBan(event.getUser() but you cant use an if statement with it