diff options
| author | ilotterytea <iltsu@alright.party> | 2024-05-01 13:57:47 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2024-05-01 13:57:47 +0500 |
| commit | 480125dad7fef61eefc7b381f42d547055224990 (patch) | |
| tree | 617bb54c3efcefa139de394bfad51200fed395d9 /src | |
| parent | 48bfed5c68220e19bb4a2dd0e70cd227c25062e8 (diff) | |
feat: get_permission_level method in command.hpp
Diffstat (limited to 'src')
| -rw-r--r-- | src/commands/command.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/commands/command.hpp b/src/commands/command.hpp index 498a1f2..cd7e731 100644 --- a/src/commands/command.hpp +++ b/src/commands/command.hpp @@ -16,6 +16,9 @@ namespace bot { virtual std::string get_name() const = 0; virtual std::variant<std::vector<std::string>, std::string> run( const InstanceBundle &bundle, const Request &request) const = 0; + virtual schemas::PermissionLevel get_permission_level() const { + return schemas::PermissionLevel::USER; + } }; class CommandLoader { |
