Skip to content

How to differentiate between a disconnect and move? #1596

@sda3-14

Description

@sda3-14

General Troubleshooting

  • I have checked for similar issues.
  • I have updated to the latest JDA version
  • I have checked the wiki and especially the FAQ section for similar questions.

Question

I am trying to write a music bot, but I am unable to differentiate between someone disconnecting the bot and someone moving the bot. For both events, the connection status changes to DISCONNECTED_KICKED_FROM_CHANNEL. How do I check if it will reconnect to another channel or if it was kicked?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions