Simple Robot Component Mirai
3.0.0.0-M3
simbot-component-mirai-core
/
love.forte.simbot.component.mirai
/
MiraiStranger
Mirai
Stranger
interface
MiraiStranger
:
Contact
,
Stranger
,
MiraiContact
(
source
)
Mirai的陌生人对象实例。
Author
ForteScarlet
Functions
Properties
Functions
send
Link copied to clipboard
abstract
suspend override
fun
send
(
text
:
String
)
:
SimbotMiraiMessageReceipt
<
Stranger
>
abstract
suspend override
fun
send
(
message
:
Message
)
:
SimbotMiraiMessageReceipt
<
Stranger
>
abstract
suspend override
fun
send
(
message
:
MessageContent
)
:
SimbotMiraiMessageReceipt
<
Stranger
>
向此人发送消息。
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
open
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
:
ID
original
Contact
Link copied to clipboard
abstract
override
val
originalContact
:
Stranger
username
Link copied to clipboard
open
override
val
username
:
String