Interface MessagePreviewFormatter
-
- All Implemented Interfaces:
public interface MessagePreviewFormatterAn interface that allows to generate a preview text for the given message.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classMessagePreviewFormatter.Companion
-
Method Summary
Modifier and Type Method Description abstract CharSequenceformatMessagePreview(Channel channel, Message message, User currentUser)Generates a preview text for the given message. -
-
Method Detail
-
formatMessagePreview
abstract CharSequence formatMessagePreview(Channel channel, Message message, User currentUser)
Generates a preview text for the given message.
- Parameters:
channel- The channel containing the message.message- The message whose data is used to generate the preview text.currentUser- The currently logged in user.- Returns:
The formatted text representation for the given message.
-
-
-
-