PrivateMessageEventArgs.WaitForNextMessageAsync method (1 of 6)

等待下一条消息触发

当所在的上下文被重复触发时则会直接返回null

public ValueTask<PrivateMessageEventArgs> WaitForNextMessageAsync(
    Func<BaseMessageEventArgs, bool> matchFunc)
parameterdescription
matchFunc指令表达式

Return Value

触发后的事件参数

See Also


PrivateMessageEventArgs.WaitForNextMessageAsync method (2 of 6)

等待下一条消息触发

当所在的上下文被重复触发时则会直接返回null

public ValueTask<PrivateMessageEventArgs> WaitForNextMessageAsync(
    Func<BaseMessageEventArgs, bool> matchFunc, TimeSpan timeout, 
    Func<ValueTask> timeoutTask = null)
parameterdescription
matchFunc指令表达式
timeout超时
timeoutTask超时后执行的动作

Return Value

触发后的事件参数

See Also


PrivateMessageEventArgs.WaitForNextMessageAsync method (3 of 6)

等待下一条消息触发

当所在的上下文被重复触发时则会直接返回false

public ValueTask<PrivateMessageEventArgs> WaitForNextMessageAsync(string commandExp, 
    MatchType matchType, RegexOptions regexOptions = RegexOptions.None)
parameterdescription
commandExp指令表达式
matchType匹配类型
regexOptions正则匹配选项

Return Value

触发后的事件参数

See Also


PrivateMessageEventArgs.WaitForNextMessageAsync method (4 of 6)

等待下一条消息触发

当所在的上下文被重复触发时则会直接返回false

public ValueTask<PrivateMessageEventArgs> WaitForNextMessageAsync(string[] commandExps, 
    MatchType matchType, RegexOptions regexOptions = RegexOptions.None)
parameterdescription
commandExps指令表达式
matchType匹配类型
regexOptions正则匹配选项

Return Value

触发后的事件参数

See Also


PrivateMessageEventArgs.WaitForNextMessageAsync method (5 of 6)

等待下一条消息触发

当所在的上下文被重复触发时则会直接返回false

public ValueTask<PrivateMessageEventArgs> WaitForNextMessageAsync(string commandExp, 
    MatchType matchType, TimeSpan timeout, Func<ValueTask> timeoutTask = null, 
    RegexOptions regexOptions = RegexOptions.None)
parameterdescription
commandExp指令表达式
matchType匹配类型
regexOptions正则匹配选项
timeout超时
timeoutTask超时后执行的动作

Return Value

触发后的事件参数,超时后为null

See Also


PrivateMessageEventArgs.WaitForNextMessageAsync method (6 of 6)

等待下一条消息触发

当所在的上下文被重复触发时则会直接返回false

public ValueTask<PrivateMessageEventArgs> WaitForNextMessageAsync(string[] commandExps, 
    MatchType matchType, TimeSpan timeout, Func<ValueTask> timeoutTask = null, 
    RegexOptions regexOptions = RegexOptions.None)
parameterdescription
commandExps指令表达式
matchType匹配类型
regexOptions正则匹配选项
timeout超时
timeoutTask超时后执行的动作

Return Value

触发后的事件参数,超时后为null

See Also