summaryrefslogtreecommitdiff
path: root/bot/src/commands/lua.hpp
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-07-06 12:40:01 +0500
committerilotterytea <iltsu@alright.party>2025-07-06 12:40:01 +0500
commitc445bc6def35a9e01b4303ab6fac3a7d71c8f56f (patch)
tree5ab45b533e822a8a497d0624990c110badd8280a /bot/src/commands/lua.hpp
parent0194f86ee840b9585fdc9a111b3d9521217b39bf (diff)
feat: command aliases
Diffstat (limited to 'bot/src/commands/lua.hpp')
-rw-r--r--bot/src/commands/lua.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/bot/src/commands/lua.hpp b/bot/src/commands/lua.hpp
index 05e9490..1e0cd4b 100644
--- a/bot/src/commands/lua.hpp
+++ b/bot/src/commands/lua.hpp
@@ -71,12 +71,15 @@ namespace bot::command::lua {
std::vector<std::string> get_subcommand_ids() const override {
return this->subcommands;
}
+ std::vector<std::string> get_aliases() const override {
+ return this->aliases;
+ }
private:
std::string name;
int delay;
schemas::PermissionLevel level;
- std::vector<std::string> subcommands;
+ std::vector<std::string> subcommands, aliases;
sol::function handle;