summaryrefslogtreecommitdiff
path: root/bot/src/commands/response.hpp
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2024-12-07 17:24:25 +0500
committerilotterytea <iltsu@alright.party>2024-12-07 17:24:25 +0500
commit52fd4ea8bad5cd7d3940a41df4f8f54b4e72beae (patch)
tree28f13892e7da8ec023f4b4d1113bef88795724ca /bot/src/commands/response.hpp
parente604d12282b8fa9f9023bb79161b36c9a8b0be55 (diff)
feat: a special class for command responses
Diffstat (limited to 'bot/src/commands/response.hpp')
-rw-r--r--bot/src/commands/response.hpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/bot/src/commands/response.hpp b/bot/src/commands/response.hpp
new file mode 100644
index 0000000..2f05fd8
--- /dev/null
+++ b/bot/src/commands/response.hpp
@@ -0,0 +1,25 @@
+#pragma once
+
+#include <optional>
+#include <string>
+#include <vector>
+
+namespace bot::command {
+ class Response {
+ public:
+ Response();
+ Response(std::string single);
+ Response(std::vector<std::string> multiple);
+
+ const std::string get_single() const;
+ const std::vector<std::string> get_multiple() const;
+
+ const bool is_single() const;
+ const bool is_multiple() const;
+ const bool is_empty() const;
+
+ private:
+ std::optional<std::string> single;
+ std::optional<std::vector<std::string>> multiple;
+ };
+} \ No newline at end of file