This repository was archived by the owner on Feb 10, 2023. It is now read-only.
Replies: 1 comment
-
val sourceMessage = (this as? CommandSenderOnMessage<*>)?.fromEvent?.message
if (sourceMessage != null) {
sendMessage(sourceMessage.quote() + "OK")
} else {
sendMessage("OK")
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Arasple
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
e.g.
@SubCommand @Description("设置成员禁言") suspend fun CommandSender.mute(target: Member, duration: String = "180s") { target.mute(duration.toDuration().toSeconds().toInt()).toString() }能否对命令消息源进行引用?我希望实现以下效果
sendMessage(message.quote() + "Command Respond")Beta Was this translation helpful? Give feedback.
All reactions