public final class Mentions extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
detectMentionAllInContent(String rawContent) |
static MentionState |
extract(Mention[] mentionEvents,
String rawContent,
BotIdentity botIdentity) |
static MentionState |
extract(MentionEvent[] mentionEvents,
String rawContent,
BotIdentity botIdentity) |
static String |
replaceKeys(String text,
MentionState mentionState,
boolean stripBotMentions) |
static String |
resolveMentions(String text,
ConvertContext context)
Second-pass: replace placeholder keys in content with human-readable names
or strip bot mentions if configured.
|
public static MentionState extract(MentionEvent[] mentionEvents, String rawContent, BotIdentity botIdentity)
public static MentionState extract(Mention[] mentionEvents, String rawContent, BotIdentity botIdentity)
public static String replaceKeys(String text, MentionState mentionState, boolean stripBotMentions)
public static String resolveMentions(String text, ConvertContext context)
public static boolean detectMentionAllInContent(String rawContent)
Copyright © 2026. All rights reserved.