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
Discord webhook returnes error when called from Forge mod
What I want is to send a file over a discord webhook using java code. I created a perfectly working code using the knowledge I gained from this stackoverflow post about curl requests in java and this Discord webhooks guide about sending attachments. The problem is, if I call the exact same code, that works perfectly from a standard java
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
Javacord can’t be imported in minecraft plugin
How do I make a Minecraft spigot plugin that is at the same time a discord bot? the server thinks that the class org.javacord.api.DiscordApiBuilder doesn’t exists so cant load the plugin. I use Maven(eclipse) it says that the DiscordApiBuilder class isn’t defined, how do I import that jar? is it possible or i have to change the discord api? error:
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.