Skip to content
Advertisement

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 I created a new EqualizerFactory and added it

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:

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

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.

Advertisement