merge method

Message merge(
  1. Message other
)

Returns a new Message that is a combination of this message and the given other message.

Implementation

Message merge(Message other) => copyWith(
      id: other.id,
      text: other.text,
      type: other.type,
      attachments: other.attachments,
      mentionedUsers: other.mentionedUsers,
      reactionCounts: other.reactionCounts,
      reactionScores: other.reactionScores,
      latestReactions: other.latestReactions,
      ownReactions: other.ownReactions,
      parentId: other.parentId,
      quotedMessage: other.quotedMessage,
      quotedMessageId: other.quotedMessageId,
      replyCount: other.replyCount,
      threadParticipants: other.threadParticipants,
      showInChannel: other.showInChannel,
      command: other.command,
      createdAt: other.createdAt,
      silent: other.silent,
      extraData: other.extraData,
      user: other.user,
      shadowed: other.shadowed,
      updatedAt: other.updatedAt,
      deletedAt: other.deletedAt,
      status: other.status,
      pinned: other.pinned,
      pinnedAt: other.pinnedAt,
      pinExpires: other.pinExpires,
      pinnedBy: other.pinnedBy,
      i18n: other.i18n,
    );