1
0
mirror of https://github.com/mamoe/mirai.git synced 2025-03-25 06:50:09 +08:00
[skip ci]
This commit is contained in:
hundun 2022-04-09 15:45:59 +08:00 committed by GitHub
parent 332e03377c
commit 2930cba0d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -256,7 +256,7 @@ public class MyCompositeCommand extends CompositeCommand {
}
@SubCommand
public void foo(CommandSender sender) {
public void foo(ConsoleCommandSender sender) {
// 使用 ConsoleCommandSender 作为接收者,表示指令只能由控制台执行。
// 当用户尝试在聊天环境执行时将会收到错误提示。
}