Simple Robot 组件 | KOOK
Toggle table of contents
4.1.2-SNAPSHOT
common
Platform filter
common
Switch theme
Search in API
Simple Robot 组件 | KOOK
simbot-component-kook-api
/
love.forte.simbot.kook.objects.card
/
CardElement
/
PlainText
Plain
Text
@
Serializable
@
SerialName
(
value
=
"plain-text"
)
data
class
PlainText
@
JvmOverloads
constructor
(
val
content
:
String
,
val
emoji
:
Boolean
=
true
)
:
CardElement.Text
(
source
)
普通文本
为了方便书写,所有plain-text的使用处可以简单的用字符串代替。
最大2000个字
Members
Constructors
Plain
Text
Link copied to clipboard
@
JvmOverloads
constructor
(
content
:
String
,
emoji
:
Boolean
=
true
)
Types
Companion
Link copied to clipboard
object
Companion
Properties
content
Link copied to clipboard
val
content
:
String
为了方便书写,所有plain-text的使用处可以简单的用字符串代替。
emoji
Link copied to clipboard
val
emoji
:
Boolean
=
true
emoji为布尔型,默认为true。如果为true,会把emoji的shortcut转为emoji