@SinceMirai("0.38.0") open fun contentEquals(another: Message, ignoreCase: Boolean = false): Boolean
判断内容是否与 another 相等.
若本函数返回 true
, 则表明:
this
与 another 的 contentToString 相等this
为 another 的所有 MessageContent 都 相等 且有同样的排列顺序.//Unresolved: net.mamoe.mirai.message.data.ContentEqualsTest
@SinceMirai("0.38.0") open fun contentEquals(another: String, ignoreCase: Boolean = false): Boolean
判断内容是否与 another 相等.
若本函数返回 true
, 则表明:
this
为 MessageChain, 则只包含 MessageMetadata 和 PlainText//Unresolved: net.mamoe.mirai.message.data.ContentEqualsTest