Giter Site home page Giter Site logo

Comments (11)

Mysterypotatoguy avatar Mysterypotatoguy commented on August 24, 2024

You're not getting any other errors before this, right?

from javacord.

MedicOP avatar MedicOP commented on August 24, 2024

Nope

from javacord.

Bastian avatar Bastian commented on August 24, 2024

Hmm, that's strange...
Do you get this error message regularly or was this the only time?

from javacord.

MedicOP avatar MedicOP commented on August 24, 2024

Regularly. My bot deletes voice channels if they are left empty for 30 seconds

from javacord.

Bastian avatar Bastian commented on August 24, 2024

Is the bot, which deletes the channels, the same not which throws the exception?

from javacord.

MedicOP avatar MedicOP commented on August 24, 2024

Yes, it is.

from javacord.

rmcmk avatar rmcmk commented on August 24, 2024

2.0.15 has started producing random warnings like this for me as well. Upon channel connect I get

WARN de.btobastian.javacord.utils.PacketHandler - Couldn't handle packet of type GUILD_CREATE.

Reverting back to 2.0.14 solves the issue. 👍

from javacord.

MedicOP avatar MedicOP commented on August 24, 2024

It seems like calling VoiceChannel.delete() removes the channel from the cache. Then when a CHANNEL_DELETE packet is received, it tries to remove it again causing NPE because it's not in the cache anymore.

Could either remove the code in VoiceChannel.delete() that removes it from the cache and just rely on the packet listener instead, or just add a null check in ChannelDeleteHandler.handle

from javacord.

that1guy232 avatar that1guy232 commented on August 24, 2024

I easily recreated this in the newest version,
@Command(aliases = "!test") public String test(Channel channel){ channel.delete(); return null; }

from javacord.

Bastian avatar Bastian commented on August 24, 2024

@MedicOP
Yes, that's most likely the issue.

@ryleykimmel
Can you please show me the full error message? It's another packet, so these two issues aren't related.

from javacord.

Bastian avatar Bastian commented on August 24, 2024

Fixed :)

from javacord.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.