Skip to content

Commit

Permalink
Fix SQL statement
Browse files Browse the repository at this point in the history
  • Loading branch information
DxsSucuk committed Jun 9, 2023
1 parent 791ebd6 commit dcfda94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/de/presti/ree6/commands/CommandManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit dcfda94

Please sign in to comment.