Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I have a discord bot developed in Java using the latest version of JDA (4.2.0_168).
I have a few events in my bot and only one works.
The GuildMessageReceivedEvent works but other events like GuildMemberJoinEvent,GuildMemberRemoveEvent and GuildMessageReactionRemoveEvent don't work.
The problem is before I updated the version everything was working.
I didn't change anything but the GuildMemberRemoveEvent in the code so I have no idea what to do. I tried to read the docs but nothing is there.
First of all that's not the latest version of JDA. It currently is 4.2.0_212 and you can find the latest on Jenkins any time.
You didn't mention anything about the intents you use so I'll go off on a tangent and assume you don't use intents properly. In order for these events to work you need to enable the GatewayIntent.GUILD_MEMBERS. This is explained in the requirements section of the event documentation.
Use enableIntents(GatewayIntent.GUILD_MEMBERS) on your JDABuilder or DefaultShardManagerBuilder. This will allow you to use these events.
I recommend reading the troubleshooting guide if you experience any other issues.
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I have a discord bot developed in Java using the latest version of JDA (4.2.0_168).
I have a few events in my bot and only one works.
The GuildMessageReceivedEvent works but other events like GuildMemberJoinEvent,GuildMemberRemoveEvent and GuildMessageReactionRemoveEvent don't work.
The problem is before I updated the version everything was working.
I didn't change anything but the GuildMemberRemoveEvent in the code so I have no idea what to do. I tried to read the docs but nothing is there.
First of all that's not the latest version of JDA. It currently is 4.2.0_212 and you can find the latest on Jenkins any time.
You didn't mention anything about the intents you use so I'll go off on a tangent and assume you don't use intents properly. In order for these events to work you need to enable the GatewayIntent.GUILD_MEMBERS. This is explained in the requirements section of the event documentation.
Use enableIntents(GatewayIntent.GUILD_MEMBERS) on your JDABuilder or DefaultShardManagerBuilder. This will allow you to use these events.
I recommend reading the troubleshooting guide if you experience any other issues.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
In a fresh AS project we have error. in our proxy settings we have error too. see the screenshot below:
How can we solve error?
UPDATE:
When we use auto detect, after click to try sync, below window opened:
Can you try use IP address (of fodev.org? are you sure this is correct?) in this case see whether it works?
You can tick the auto-detect proxy settings see whether it helps or not.
fodev.org:8118 seems to be accessible, at least from here. Maybe try to use another proxy, or find a VPN provider, that offers endpoints in your country of residence. As a paying customer you could bug them, when it doesn't work - not so with some free of charge service alike: https://github.com/freedomofdevelopers/fod
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 4 years ago.
Improve this question
My firebase console dose not show any data if I go to rules then also it is not showing rules also it is just showing unable to show rules what should I do?
it might seem ridiculous but I have tried to log out and log in but it didn't help so i changed the web browser and it worked
I had the same problem. It was the Ads blocker. Just I disabled it and data showed up.
Be careful of these sneaky extensions.
Hope it helps others.
just goto the RULES option given beside the data in Firebase and change the read,write from false to true and then click simulator and publish it.
I have experienced this problem and try this.
Log out of your Google account.
Close every instance of the browser.
Restart your laptop.
Log into the console.
This has helped me numerous times and it might work for you too.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
So I'm following this tutorial http://masl.cis.gvsu.edu/2010/10/12/android-dev-tutorial-now-available-on-the-gvsu-itunes-u-portal/ and have had no problems what so ever until now.
On Module 3, the app downloads data from twitter and displays them in a list view. I followed the lecture video and understand everything. However, once I tried it on my own I ran into issues. I even copy and pasted the lecture source code and still can't get it to work.
What I'm wondering, is it my mistake? or does it have to do with some obsolete code, as the tutorial is more than a few years old?
Here's my 2 java classes:
http://pastebin.com/g27HrgN3
http://pastebin.com/d7kD0gr4
The app never lists any twitter data like it's supposed to. Here's the app output
here's what I get as output on my environment
As you can tell, I'm new to android programming, a point in the right direction would be great.
{"errors":[{"message":"The Twitter REST API v1 is no longer active. Please migrate to API v1.1. https://dev.twitter.com/docs/api/1.1/overview.","code":64}]}
That explains.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
I followed Google's tutorial for the Java version of App Engine and when I ran it on my machine it would work fine at localhost:8888/guestbook and all it displayed was Hello, World. However when I deployed it and then accessed it through app-name.appspot.com/guestbook, it gives me a 500 error.
Here's the GuestbookServlet code: http://pastebin.com/LrAjXjW4
web.xml and appengine-web.xml contents: http://pastebin.com/UYFw3ChZ
I'm really sorry if this is a noob mistake and easily found by searching but I looked around for half a day and still couldn't find an answer.
I'll post more code if necessary but its basically the first tutorial of AppEngine in Java
Thanks
Sounds like you're using Java 7, which App Engine doesn't support. Recompile with JDK6 and it should clear up.