From 55c2bdefd29b2ae6c97062571ab5c8fde3e083ed Mon Sep 17 00:00:00 2001 From: Him188 Date: Sun, 29 Nov 2020 19:17:28 +0800 Subject: [PATCH] Change RESTRICTED_CONSOLE_COMMAND_OWNER to warning --- tools/compiler-common/src/diagnostics/MiraiConsoleErrors.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/compiler-common/src/diagnostics/MiraiConsoleErrors.kt b/tools/compiler-common/src/diagnostics/MiraiConsoleErrors.kt index fce7be61d..95acfc18b 100644 --- a/tools/compiler-common/src/diagnostics/MiraiConsoleErrors.kt +++ b/tools/compiler-common/src/diagnostics/MiraiConsoleErrors.kt @@ -15,6 +15,7 @@ import org.jetbrains.kotlin.diagnostics.DiagnosticFactory1.create import org.jetbrains.kotlin.diagnostics.DiagnosticFactory2.create import org.jetbrains.kotlin.diagnostics.Errors import org.jetbrains.kotlin.diagnostics.Severity.ERROR +import org.jetbrains.kotlin.diagnostics.Severity.WARNING import org.jetbrains.kotlin.psi.* /** @@ -57,7 +58,7 @@ object MiraiConsoleErrors { // val INAPPLICABLE_COMMAND_ANNOTATION = create(ERROR) @JvmField - val RESTRICTED_CONSOLE_COMMAND_OWNER = create(ERROR) + val RESTRICTED_CONSOLE_COMMAND_OWNER = create(WARNING) @JvmField val ILLEGAL_COMMAND_DECLARATION_RECEIVER = create(ERROR)