Update WaitCommandsMessages.kt
This commit is contained in:
parent
8d7563b6e4
commit
fab3af48d6
|
@ -40,7 +40,7 @@ suspend fun BehaviourContext.waitCommandMessage(
|
|||
) = waitCommandMessage(Regex(command), initRequest, errorFactory)
|
||||
|
||||
fun Flow<CommonMessage<TextContent>>.requireCommandAtStart() = filter {
|
||||
(it.content.textSources.firstOrNull() as? BotCommandTextSource) != null
|
||||
it.content.textSources.firstOrNull() is BotCommandTextSource
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue