Comments (11)
You're not getting any other errors before this, right?
from javacord.
Nope
from javacord.
Hmm, that's strange...
Do you get this error message regularly or was this the only time?
from javacord.
Regularly. My bot deletes voice channels if they are left empty for 30 seconds
from javacord.
Is the bot, which deletes the channels, the same not which throws the exception?
from javacord.
Yes, it is.
from javacord.
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.
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.
I easily recreated this in the newest version,
@Command(aliases = "!test") public String test(Channel channel){ channel.delete(); return null; }
from javacord.
@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.
Fixed :)
from javacord.
Related Issues (20)
- Couldn't handle packet of type VOICE_STATE_UPDATE
- Add voice message support to text channel
- Add super reactions
- Slash Commands issue HOT 11
- Replacement/just removal and deprecation of `getDiscriminatedName ` HOT 8
- Add role flags HOT 1
- Add attachment flags HOT 1
- Add the message author id to message reaction events HOT 1
- Add user avatar decorations
- SlashCommandOptionChoice#getLongValue returns a empty optional despite a long value being present on DAPI HOT 2
- `ServerThreadChannelCreateListener` dispatching twice.
- Parameters are ignored when requesting archived threads
- Look through the code for non thread safe collections
- Add default select menu values HOT 1
- Add support for premium app subscriptions
- Add resolved field to message components
- Fix Embed* implementation methods returning null instead of optional
- Continuous switching between the voice channels.
- Ability to set message flags for any message to send (not only for interaction messages)
- Wrong channel type after an ephemeral response HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from javacord.