Appearance
@mastondzn/dank-twitch-irc / awaitResponse
Function: awaitResponse()
awaitResponse<
TMessage
,TNoResponseAction
>(conn
,config
):Promise
<TNoResponseAction
extends"success"
?undefined
|TMessage
:TMessage
>
Type parameters
• TMessage extends IRCMessage
= IRCMessage
• TNoResponseAction extends undefined
| NoResponseAction
= undefined
Parameters
• conn: SingleConnection
• config: AwaitConfig
& Object
Returns
Promise
<TNoResponseAction
extends "success"
? undefined
| TMessage
: TMessage
>