Simple Robot Component Mirai
3.0.0.0-M3
simbot-component-mirai-core
/
love.forte.simbot.component.mirai
/
MiraiContact
Mirai
Contact
interface
MiraiContact
:
Contact
,
MiraiContactObjective
(
source
)
Contact
对应Mirai的
联系人
类型。
Author
ForteScarlet
Functions
Properties
See also
Inheritors
See also
Mirai
Friend
Mirai
Member
Mirai
Stranger
Functions
send
Link copied to clipboard
open
suspend
fun
send
(
text
:
String
)
:
MessageReceipt
open
suspend
fun
send
(
message
:
MessageContent
)
:
MessageReceipt
abstract
suspend override
fun
send
(
message
:
Message
)
:
MessageReceipt
send
Async
Link copied to clipboard
open
fun
sendAsync
(
text
:
String
)
:
CompletableFuture
<
out
MessageReceipt
>
open
fun
sendAsync
(
message
:
Message
)
:
CompletableFuture
<
out
MessageReceipt
>
open
fun
sendAsync
(
message
:
MessageContent
)
:
CompletableFuture
<
out
MessageReceipt
>
send
Blocking
Link copied to clipboard
open
fun
sendBlocking
(
text
:
String
)
:
MessageReceipt
open
fun
sendBlocking
(
message
:
Message
)
:
MessageReceipt
open
fun
sendBlocking
(
message
:
MessageContent
)
:
MessageReceipt
Properties
avatar
Link copied to clipboard
abstract
override
val
avatar
:
String
bot
Link copied to clipboard
abstract
override
val
bot
:
MiraiBot
category
Link copied to clipboard
open
val
category
:
Category
?
id
Link copied to clipboard
abstract
override
val
id
:
LongID
original
Contact
Link copied to clipboard
abstract
override
val
originalContact
:
Contact
username
Link copied to clipboard
abstract
override
val
username
:
String
Inheritors
MiraiFriend
Link copied to clipboard
MiraiMember
Link copied to clipboard
MiraiStranger
Link copied to clipboard