Skip to content

Tag: discord

Bass Boost – JDA Lavaplayer

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 …

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 p…

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 c…

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.…