summaryrefslogtreecommitdiff
path: root/src/commands/request.hpp
blob: 6149dee9e6085b35c1cbb9332a59c52817beea4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once

#include <optional>
#include <pqxx/pqxx>
#include <string>

#include "../irc/message.hpp"
#include "../schemas/channel.hpp"

namespace bot::command {
  struct Request {
      std::string command_id;
      std::optional<std::string> subcommand_id;
      std::optional<std::string> message;
      const irc::Message<irc::MessageType::Privmsg> &irc_message;

      schemas::Channel channel;

      pqxx::connection &conn;
  };
}