Class CommandLogDAO

java.lang.Object
de.klassenserver7b.k7bot.database.dao.CommandLogDAO

public class CommandLogDAO extends Object
Data Access Object for handling CommandLogEntity operations. Provides methods for inserting logs of executed commands.
  • Constructor Details

    • CommandLogDAO

      public CommandLogDAO()
  • Method Details

    • insertLog

      public CompletableFuture<Void> insertLog(String command, Long guildId, Long userId, Long timestamp)
      Inserts a log entry for a command execution.
      Parameters:
      command - the name or alias of the executed command
      guildId - the ID of the guild where the command was executed
      userId - the ID of the user who executed the command
      timestamp - the timestamp of when the command was executed
      Returns:
      a CompletableFuture that completes when the operation is finished