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

IllegalStateException: This message event did not happen in a text channel #89

Open
5 of 6 tasks
YukioKeno opened this issue Jul 21, 2019 · 2 comments
Open
5 of 6 tasks
Labels
Bug A bug, error, and/or oversight in the code-base. Module: Menu Related to the "menu" module.

Comments

@YukioKeno
Copy link

YukioKeno commented Jul 21, 2019

Issue

Issue Checklist

Please follow the following steps before opening this issue.

Issues that do not complete the checklist may be closed without any help.

  • I have checked for similar issues on the [issue tracker][issues].
  • I have updated to the [latest version][download] of JDA-Utilities.
  • I have checked the branches or the maintainers' PRs for upcoming features/bug fixes.

The issue tracker is reserved for issues, errors, and feature requests related
to JDA-Utilities, and not questions and other requests for help.

  • For examples, check out the [examples module][examples-module] or the list
    of [JDA-Utilities projects][jda-u-projects].
  • For questions join the [official JDA discord server][guild] and ask them
    in our #jda-utilities channel.
  • For general programming questions, visit [StackOverflow][stack overflow].

Issue Information

Check all that apply:

  • This is a bug report about an error, issue, or bug in JDA-Utilities.
    • I have been able to consistently reproduce this bug.
  • This is a feature request for the JDA-Utilities library.

This issue tracker does not assist or handle issues with the JDA library.

For JDA related issues, visit the [JDA issue tracker][jda-issues]
and open an issue there.

Description

When I use the ButtonBuilder in a private message and the user react to answer it the buttonMenu use the function event.getGuild (ButtonMenu.java:135). This function call is try getting the guild from a TextChannel (GenericMessageEvent.java:126) and not from a private channel. This ends in a IllegalStateException: This message event did not happen in a text channel

@YukioKeno
Copy link
Author

YukioKeno commented Jul 21, 2019

I think it's related to this from the new JDA version 4 https://github.com/DV8FromTheWorld/JDA/wiki/0%29-Migrating-to-V4#messages

@MinnDevelopment MinnDevelopment added Bug A bug, error, and/or oversight in the code-base. Module: Menu Related to the "menu" module. labels Jul 21, 2019
@jyao6429
Copy link

I am getting the same error when trying to use the AboutCommand in a DM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug, error, and/or oversight in the code-base. Module: Menu Related to the "menu" module.
Projects
None yet
Development

No branches or pull requests

3 participants