From d378413b6417c1b5fb824bc2f9cfb6843219d192 Mon Sep 17 00:00:00 2001 From: huanmeng-qwq Date: Tue, 27 Aug 2024 13:39:05 +0800 Subject: [PATCH] fix: ChannelArgument#CHANNEL_FOUND_FAILURE --- .../impl/command/litecommands/argument/ChannelArgument.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/snw/kookbc/impl/command/litecommands/argument/ChannelArgument.java b/src/main/java/snw/kookbc/impl/command/litecommands/argument/ChannelArgument.java index 0483f3d5..c466a7d4 100644 --- a/src/main/java/snw/kookbc/impl/command/litecommands/argument/ChannelArgument.java +++ b/src/main/java/snw/kookbc/impl/command/litecommands/argument/ChannelArgument.java @@ -29,12 +29,11 @@ import snw.jkook.HttpAPI; import snw.jkook.command.CommandException; import snw.jkook.command.CommandSender; -import snw.jkook.entity.User; import snw.jkook.entity.channel.Channel; public class ChannelArgument extends ArgumentResolver { public static final MessageKey CHANNEL_NOT_FOUND = MessageKey.of("channel_not_found", "Channel not found"); - public static final MessageKey EMOJI_FOUND_FAILURE = MessageKey.of("emoji_found_failure", "Emoji found failure"); + public static final MessageKey CHANNEL_FOUND_FAILURE = MessageKey.of("channel_found_failure", "Channel found failure"); private final HttpAPI httpAPI; private final MessageRegistry messageRegistry; @@ -61,7 +60,7 @@ protected ParseResult parse(Invocation invocation, Argument } return ParseResult.success((T) channel); } catch (final Exception e) { - return ParseResult.failure(messageRegistry.getInvoked(EMOJI_FOUND_FAILURE, invocation, new CommandException("Channel not found", e))); + return ParseResult.failure(messageRegistry.getInvoked(CHANNEL_FOUND_FAILURE, invocation, new CommandException("Channel not found", e))); } }