droplet 1.3.0
A multipurpose Discord bot with the hacker in mind
Loading...
Searching...
No Matches
RemovePortalCommand.hpp
Go to the documentation of this file.
1/*
2 * (c) Copyright erarnitox.de - All rights reserved
3 * Author: Erarnitox <david@erarnitox.de>
4 *
5 * License: MIT License
6 */
7
8#pragma once
9
11#include <string_view>
12
13struct AppContext;
15class PortalIndex;
16
18 public:
19 static constexpr std::string_view k_name{"remove_portal"};
20 static constexpr std::string_view k_description{"Remove the portal from this server (Admin only!)"};
21
22 explicit RemovePortalCommand(AppContext& ctx);
23
24 void on_slashcommand(const dpp::slashcommand_t& event) override;
25
26 private:
28 PortalIndex& portal_index_;
29};
Definition DatabaseExecutor.hpp:14
Definition IGlobalSlashCommand.hpp:6
Definition PortalIndex.hpp:11
RemovePortalCommand(AppContext &ctx)
Definition RemovePortalCommand.cpp:27
void on_slashcommand(const dpp::slashcommand_t &event) override
Definition RemovePortalCommand.cpp:36
static constexpr std::string_view k_description
Definition RemovePortalCommand.hpp:20
static constexpr std::string_view k_name
Definition RemovePortalCommand.hpp:19
Definition AppContext.hpp:12