TestBot

open class TestBot(var component: Component = TestComponent(TestComponentConfiguration()), var configuration: TestBotConfiguration = TestBotConfiguration(), coroutineContext: CoroutineContext = configuration.coroutineContext) : JobBasedBot(source)

用于测试的 Bot 实现。

Author

ForteScarlet

Constructors

Link copied to clipboard
constructor(component: Component = TestComponent(TestComponentConfiguration()), configuration: TestBotConfiguration = TestBotConfiguration(), coroutineContext: CoroutineContext = configuration.coroutineContext)

Properties

Link copied to clipboard
open override var component: Component
Link copied to clipboard
Link copied to clipboard
open override var contactRelation: ContactRelation?
Link copied to clipboard
Link copied to clipboard
open override var groupRelation: GroupRelation?
Link copied to clipboard
open override var guildRelation: GuildRelation?
Link copied to clipboard
open override var id: ID
Link copied to clipboard
protected override val job: Job
Link copied to clipboard
open override var name: String

Inherited properties

Link copied to clipboard
open override val isActive: Boolean
Link copied to clipboard
open override val isCompleted: Boolean
Link copied to clipboard
open override var isStarted: Boolean
Link copied to clipboard

Functions

Link copied to clipboard
open infix override fun isMe(id: ID): Boolean
Link copied to clipboard
open suspend override fun start()

Inherited functions

Link copied to clipboard
open fun cancel()
open override fun cancel(reason: Throwable?)
Link copied to clipboard
open suspend override fun join()
Link copied to clipboard
open suspend fun messageFromId(id: ID): MessageContent
Link copied to clipboard
Link copied to clipboard
open override fun onCompletion(handle: OnCompletion)