code: 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);
      }
docs: Dispatches an edit event.
  
  @param event The event to dispatch.