getPreviewMessage

fun Channel.getPreviewMessage(currentUser: User?): Message?

Returns channel's last regular or system message if exists. Deleted and silent messages, as well as messages from shadow-banned users, are not taken into account.

Return

Last message from the channel or null if it doesn't exist.