private void dispatchEditEvent ( MessageEditEvent event ) { Optional < Server > optionalServer = event . getChannel ( ) . asServerChannel ( ) . map ( ServerChannel :: getServer ) ; api . getEventDispatcher ( ) . dispatchMessageEditEvent ( optionalServer . map ( DispatchQueueSelector . class :: cast ) . orElse ( api ) , event . getMessageId ( ) , optionalServer . orElse ( null ) , event . getChannel ( ) , event ) ; }
Dispatches an edit event .