toggle menu
Simple Robot
4.8.0
common
switch theme
search in API
simbot-test
/
love.forte.simbot.test.bot
/
TestBotManager
Test
Bot
Manager
open
class
TestBotManager
(
component
:
TestComponent
,
configuration
:
TestBotManagerConfiguration
,
val
job
:
Job
)
:
JobBasedBotManager
(
source
)
用于测试的
BotManager
实现。
Author
ForteScarlet
Members
Constructors
Test
Bot
Manager
Link copied to clipboard
constructor
(
component
:
TestComponent
,
configuration
:
TestBotManagerConfiguration
,
job
:
Job
)
Types
Factory
Link copied to clipboard
object
Factory
:
BotManagerFactory
<
TestBotManager
,
TestBotManagerConfiguration
>
Properties
job
Link copied to clipboard
protected
open
override
val
job
:
Job
Inherited properties
is
Active
Link copied to clipboard
open
override
val
isActive
:
Boolean
is
Completed
Link copied to clipboard
open
override
val
isCompleted
:
Boolean
Functions
all
Link copied to clipboard
open
override
fun
all
(
)
:
Sequence
<
TestBot
>
configurable
Link copied to clipboard
open
override
fun
configurable
(
configuration
:
SerializableBotConfiguration
)
:
Boolean
get
Link copied to clipboard
open
operator override
fun
get
(
id
:
ID
)
:
TestBot
register
Link copied to clipboard
open
override
fun
register
(
configuration
:
SerializableBotConfiguration
)
:
TestBot
Inherited functions
all
Link copied to clipboard
open
fun
all
(
id
:
ID
)
:
Sequence
<
Bot
>
all
To
List
Link copied to clipboard
open
fun
allToList
(
)
:
List
<
Bot
>
open
fun
allToList
(
id
:
ID
)
:
List
<
Bot
>
all
To
Streamable
Link copied to clipboard
open
fun
allToStreamable
(
)
:
Streamable
<
Bot
>
open
fun
allToStreamable
(
id
:
ID
)
:
Streamable
<
Bot
>
cancel
Link copied to clipboard
open
override
fun
cancel
(
cause
:
Throwable
?
)
find
Link copied to clipboard
open
fun
find
(
id
:
ID
)
:
Bot
?
join
Link copied to clipboard
open
suspend override
fun
join
(
)
on
Completion
Link copied to clipboard
open
override
fun
onCompletion
(
handle
:
OnCompletion
)