From dcfda940f426ebd8f9fca54ccd7a940b9a8b1b18 Mon Sep 17 00:00:00 2001 From: Presti Date: Fri, 9 Jun 2023 15:36:29 +0200 Subject: [PATCH] Fix SQL statement --- src/main/java/de/presti/ree6/commands/CommandManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/presti/ree6/commands/CommandManager.java b/src/main/java/de/presti/ree6/commands/CommandManager.java index c28870c27..816a67a6c 100644 --- a/src/main/java/de/presti/ree6/commands/CommandManager.java +++ b/src/main/java/de/presti/ree6/commands/CommandManager.java @@ -396,7 +396,7 @@ private boolean performMessageCommand(Member member, Guild guild, String message // Check if there is even a Command with that name. if (command == null && Data.isModuleActive("customcommands")) { - CustomCommand customCommand = SQLSession.getSqlConnector().getSqlWorker().getEntity(new CustomCommand(), "SELECT * FROM CustomCommands WHERE GID=:gid AND COMMAND=:command", Map.of("gid", guild.getId(), "command", arguments[0].toLowerCase())); + CustomCommand customCommand = SQLSession.getSqlConnector().getSqlWorker().getEntity(new CustomCommand(), "SELECT * FROM CustomCommands WHERE guild=:gid AND COMMAND=:command", Map.of("gid", guild.getId(), "command", arguments[0].toLowerCase())); if (customCommand != null) { MessageChannelUnion messageChannelUnion = textChannel;