Skip to content
This repository has been archived by the owner on Feb 10, 2023. It is now read-only.

Command处理中能否引用 Message #292

Answered by Karlatemp
Arasple asked this question in 问答
Discussion options

You must be logged in to vote
val sourceMessage = (this as? CommandSenderOnMessage<*>)?.fromEvent?.message
if (sourceMessage != null) {
    sendMessage(sourceMessage.quote() + "OK")
} else {
    sendMessage("OK")
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Arasple
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
问答
Labels
None yet
2 participants