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

UNKNOWN TYPE for a new type of message #2779

Open
2 tasks done
Emmanuel-DUFOUR opened this issue Dec 20, 2024 · 0 comments
Open
2 tasks done

UNKNOWN TYPE for a new type of message #2779

Emmanuel-DUFOUR opened this issue Dec 20, 2024 · 0 comments

Comments

@Emmanuel-DUFOUR
Copy link

General Troubleshooting

  • I have checked for similar issues on the Issue-tracker.
  • I have checked for PRs that might already address this issue.

Version of JDA

5.2.1

Expected Behaviour

image
this message raises the following exception on 5.2.1:
2024-12-20 11:44:57 [MessageHistory] [WARN] Encountered exception when retrieving messages
java.lang.IllegalArgumentException: UNKNOWN_MESSAGE_TYPE
at net.dv8tion.jda.internal.entities.EntityBuilder.createMessage0(EntityBuilder.java:1736)
at net.dv8tion.jda.internal.entities.EntityBuilder.createMessageWithChannel(EntityBuilder.java:1678)
at net.dv8tion.jda.api.entities.MessageHistory.lambda$retrievePast$1(MessageHistory.java:207)
at net.dv8tion.jda.internal.requests.RestActionImpl.handleSuccess(RestActionImpl.java:307)
at net.dv8tion.jda.internal.requests.RestActionImpl.handleResponse(RestActionImpl.java:285)
at net.dv8tion.jda.api.requests.Request.handleResponse(Request.java:306)
at net.dv8tion.jda.internal.requests.Requester$WorkTask.handleResponse(Requester.java:442)
at net.dv8tion.jda.internal.requests.Requester$WorkTask.access$300(Requester.java:378)
at net.dv8tion.jda.internal.requests.Requester.execute(Requester.java:245)
at net.dv8tion.jda.internal.requests.Requester.execute(Requester.java:157)
at net.dv8tion.jda.internal.requests.Requester.execute(Requester.java:140)
at net.dv8tion.jda.internal.requests.Requester$WorkTask.execute(Requester.java:406)
at net.dv8tion.jda.api.requests.SequentialRestRateLimiter$Bucket.execute(SequentialRestRateLimiter.java:478)
at net.dv8tion.jda.api.requests.SequentialRestRateLimiter$Bucket.run(SequentialRestRateLimiter.java:518)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
at java.base/java.lang.Thread.run(Thread.java:831)

Code Example for Reproduction Steps

stack already provided

Code for JDABuilder or DefaultShardManagerBuilder used

blah

Exception or Error

java.lang.IllegalArgumentException: UNKNOWN_MESSAGE_TYPE
at net.dv8tion.jda.internal.entities.EntityBuilder.createMessage0(EntityBuilder.java:1736)
at net.dv8tion.jda.internal.entities.EntityBuilder.createMessageWithChannel(EntityBuilder.java:1678)
at net.dv8tion.jda.api.entities.MessageHistory.lambda$retrievePast$1(MessageHistory.java:207)
at net.dv8tion.jda.internal.requests.RestActionImpl.handleSuccess(RestActionImpl.java:307)
at net.dv8tion.jda.internal.requests.RestActionImpl.handleResponse(RestActionImpl.java:285)
at net.dv8tion.jda.api.requests.Request.handleResponse(Request.java:306)
at net.dv8tion.jda.internal.requests.Requester$WorkTask.handleResponse(Requester.java:442)
at net.dv8tion.jda.internal.requests.Requester$WorkTask.access$300(Requester.java:378)
at net.dv8tion.jda.internal.requests.Requester.execute(Requester.java:245)
at net.dv8tion.jda.internal.requests.Requester.execute(Requester.java:157)
at net.dv8tion.jda.internal.requests.Requester.execute(Requester.java:140)
at net.dv8tion.jda.internal.requests.Requester$WorkTask.execute(Requester.java:406)
at net.dv8tion.jda.api.requests.SequentialRestRateLimiter$Bucket.execute(SequentialRestRateLimiter.java:478)
at net.dv8tion.jda.api.requests.SequentialRestRateLimiter$Bucket.run(SequentialRestRateLimiter.java:518)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
at java.base/java.lang.Thread.run(Thread.java:831)
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

1 participant