Search in sources :

Example 6 with ThreadChannel

use of net.dv8tion.jda.api.entities.ThreadChannel in project JDA by DV8FromTheWorld.

the class ThreadChannelActionImpl method handleSuccess.

@Override
protected void handleSuccess(Response response, Request<ThreadChannel> request) {
    ThreadChannel channel = api.getEntityBuilder().createThreadChannel(response.getObject(), guild.getIdLong());
    request.onSuccess(channel);
}
Also used : ThreadChannel(net.dv8tion.jda.api.entities.ThreadChannel)

Aggregations

ThreadChannel (net.dv8tion.jda.api.entities.ThreadChannel)6 DataObject (net.dv8tion.jda.api.utils.data.DataObject)3 DataArray (net.dv8tion.jda.api.utils.data.DataArray)2 EntityBuilder (net.dv8tion.jda.internal.entities.EntityBuilder)2 TLongObjectHashMap (gnu.trove.map.hash.TLongObjectHashMap)1 ArrayList (java.util.ArrayList)1 ChannelCreateEvent (net.dv8tion.jda.api.events.channel.ChannelCreateEvent)1 ChannelDeleteEvent (net.dv8tion.jda.api.events.channel.ChannelDeleteEvent)1 ThreadRevealedEvent (net.dv8tion.jda.api.events.thread.ThreadRevealedEvent)1 ParsingException (net.dv8tion.jda.api.exceptions.ParsingException)1 GuildImpl (net.dv8tion.jda.internal.entities.GuildImpl)1 ThreadChannelImpl (net.dv8tion.jda.internal.entities.ThreadChannelImpl)1