Channels and users are null #2742
Unanswered
KikyoC
asked this question in
Questions and Help
Replies: 1 comment
-
You're creating a thread but not starting it, or am I missing something? Why are you creating a thread for this? This just makes your code less efficient for no benefit, no? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm storing in a database users id and channels id to do some stuff.
When I'm requesting to my sql server an id I'm using JDA.getTextChannelById().
The problem is that I get an error who says the channel is null.
I tried to log what return database and everything is good.
For example in this code (most strange thing) I'm trying to send an embed with a button. Note that I don't get any error or "Channel not found log". It's just not sending the embed
But when I'm creating a new channel (and set this.channel as TextChannel) everything works fine.
Beta Was this translation helpful? Give feedback.
All reactions