Class SlashCommandLogDAO

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

public class SlashCommandLogDAO extends Object
Data Access Object for handling SlashCommandLogEntity operations. Provides methods for logging executed slash commands.
  • Constructor Details

    • SlashCommandLogDAO

      public SlashCommandLogDAO()
  • Method Details

    • insertLog

      public CompletableFuture<Void> insertLog(String command, Long guildId, Long userId, Long timestamp, String commandstring)
      Inserts a log entry for a slash command execution.
      Parameters:
      command - the name of the slash 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
      commandstring - the full string representation of the executed command with options
      Returns:
      a CompletableFuture that completes when the operation is finished