Skip to content
This repository was archived by the owner on Feb 4, 2025. It is now read-only.
This repository was archived by the owner on Feb 4, 2025. It is now read-only.

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

Open
@YukioKeno

Description

@YukioKeno

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug, error, and/or oversight in the code-base.Module: MenuRelated to the "menu" module.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions