droplet 1.3.0
A multipurpose Discord bot with the hacker in mind
Loading...
Searching...
No Matches
ClearCommand.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;
14
16 public:
17 static constexpr std::string_view k_name{"clear"};
18 static constexpr std::string_view k_description{"clear the current channel completely"};
19
20 explicit ClearCommand(AppContext& ctx);
21
22 void on_slashcommand(const dpp::slashcommand_t& event) override;
23
24 private:
25 dpp::cluster& discord_;
26};
ClearCommand(AppContext &ctx)
Definition ClearCommand.cpp:22
void on_slashcommand(const dpp::slashcommand_t &event) override
Definition ClearCommand.cpp:31
static constexpr std::string_view k_description
Definition ClearCommand.hpp:18
static constexpr std::string_view k_name
Definition ClearCommand.hpp:17
Definition IGlobalSlashCommand.hpp:6
Definition AppContext.hpp:12