private void handleChannelCategory ( JsonNode channel ) { long serverId = channel . get ( "guild_id" ) . asLong ( ) ; api . getPossiblyUnreadyServerById ( serverId ) . ifPresent ( server -> { ChannelCategory channelCategory = ( ( ServerImpl ) server ) . getOrCreateChannelCategory ( channel ) ; ServerChannelCreateEvent event = new ServerChannelCreateEventImpl ( channelCategory ) ; api . getEventDispatcher ( ) . dispatchServerChannelCreateEvent ( ( DispatchQueueSelector ) server , server , event ) ; } ) ; }
Handles channel category creation .