How would you create a bass boost command when you are using Lavaplayer with JDA (Java Discord API)? Have a command like !bassboost 0-100. Answer After hours of trying different things to get it to function correctly I ended up using a Lavaplayer EqualizerFactory. Firstly I copied these values from here then I created a new EqualizerFactory and added it
Tag: discord-jda
How to configure slf4j (for JDA) to work with log4j (for Minecraft Paper)?
I’m making plugin for Minecraft – ‘Paper’ exactly. And it uses JDA for Discord bot function. The problem is, Minecraft(Paper) uses log4j as its logging library. JDA uses slf4j as its logging library. I want JDA to use log4j so that error message of JDA would be shown in console as plugin’s error message. (See EDIT2 for actual logs) No
How can i get the Bot Message ID and edit the Message – Discord JDA Java
For my school project i am learning how to set up a bot. I figured out how to get a message the Message ID. But the ID is not from the Bot, he get the ID from the Author who wrote the command. : Error in Console: I can tell from the Error that my MessageId is not from the
JDA: The bot does not dm the user once they have been ban
when i banned the member they were no messaged in there dms even thought the users dm were open. the code is here the error messages says it could not dm the user even though there dms were open Answer You can only send direct messages if you share a server with the user and the user does not have
Emojis and special characters in Discord webhook message from Java not working
So what I’m basically trying to accomplish is I want to copy a user’s message from one channel, and using a Webhook, I want to rewrite it out exactly as they input it in another channel. The problem is that emojis come out as ‘?’s, and many special characters (examples including £, é) completely break it. My code looks something
How to tell if a reaction is removed by a discord bot using JDA?
I have a MessageReactionRemoveEvent in my code and it triggered whenever a reaction is removed. However, I also have my bot executing some automatic reaction removal (removing the user’s reaction). I want to prevent MessageReactionRemoveEvent triggered when the reaction is removed by a bot. My code for preventing MessageReactionRemoveEvent triggered by a bot: But the getUser() method in MessageReactionRemoveEvent always
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 main issue, however. I’m confused as to how I am supposed to pull output from a specific method within
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: When I execute the program, I do not receive any warnings and my bot goes online in my discord server. However for some reason when I type “yomyman” in any channel, nothing happens. Nothing gets printed to the console, nor does
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 how do I see if the message mentions @here as well? I’ve been looking into Message#getMentions(Message.MentionType…) but I’m not sure how to use it correctly as it returns the type IMentionable.
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 …