BaseMessageCreateParams.withMessage constructor

BaseMessageCreateParams.withMessage(
  1. BaseMessage message
)

withMessage

Implementation

BaseMessageCreateParams.withMessage(BaseMessage message) {
  data = message.data;
  customType = message.customType;
  mentionType = message.mentionType;
  mentionedUserIds = message.mentionedUsers.map((e) => e.userId).toList();
  metaArrays = message.allMetaArrays;
  parentMessageId = message.parentMessageId;
  replyToChannel = message.isReplyToChannel;
}