Reputation: 58
event.getGuild().createTextChannel("EzDedline_Reminder")
I have used this command for creating a text channel however the Text channel does get created. I have given the bot administrative powers and added an event listener in the main function and have extended the listener adapter as well.
I do have the power to manage the channel as I am the owner of server.
Moreover, the code after this line is executing perfectly just this line of code is not able to create a new text channel.
event is the command entered by the user to run this function.
I am using JDA 4.2.1
Upvotes: 0
Views: 1326
Reputation: 6134
Call queue()
.
event.getGuild().createTextChannel("ezdedline_reminder").queue();
See Nothing happens when using X and What is a RestAction?.
Upvotes: 1