Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to 3.8? #1

Open
Yaokai-Yang opened this issue Apr 25, 2019 · 1 comment
Open

Update to 3.8? #1

Yaokai-Yang opened this issue Apr 25, 2019 · 1 comment

Comments

@Yaokai-Yang
Copy link

Yaokai-Yang commented Apr 25, 2019

I know you did an update to the original Main(Television).java file for JDA 3.8, but the onGuildMessageRecevied function seems to be broken. Are there any changes to the Commands.java file for 3.8?

Here is what my current Commands file looks like, the console does print out "done", but does not reply to anything users say in any channel:

package Sleeper.Commands;

import net.dv8tion.jda.core.events.message.guild.GuildMessageReceivedEvent;
import net.dv8tion.jda.core.hooks.ListenerAdapter;

import Sleeper.Main;

public class Test extends ListenerAdapter
{
	public Test()
	{
		System.out.println("Done");
	}
	
	public void onGuildMessageRecevied(GuildMessageReceivedEvent event)
	{
		event.getChannel().sendTyping().queue();
		event.getChannel().sendMessage("ack").queue();
	}
}
@MinnDevelopment
Copy link

Try spelling received correctly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants