scopeWith
inline fun <R> CommandSender?.scopeWith(vararg others: CommandSender?, action: MessageScope.() -> R): R
inline fun <R> CommandSender?.scopeWith(vararg others: MessageScope?, action: MessageScope.() -> R): R
inline fun <R> MessageScope?.scopeWith(vararg others: CommandSender?, action: MessageScope.() -> R): R
inline fun <R> MessageScope?.scopeWith(vararg others: MessageScope?, action: MessageScope.() -> R): R
Deprecated
Senseless scopeWith. Use asMessageScope.
Replace with
import net.mamoe.mirai.console.util.asMessageScope
Content copied to clipboard
this.asMessageScope()
Content copied to clipboard
Deprecated
Senseless scopeWith. Use .asMessageScope().invoke.
Replace with
import net.mamoe.mirai.console.util.asMessageScope
import net.mamoe.mirai.console.util.invoke
Content copied to clipboard
this.asMessageScope()(action)
Content copied to clipboard