droplet
1.3.0
A multipurpose Discord bot with the hacker in mind
Toggle main menu visibility
Loading...
Searching...
No Matches
BlacklistCommand.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
10
#include <
IGlobalSlashCommand.hpp
>
11
#include <string_view>
12
13
struct
AppContext
;
14
class
DatabaseExecutor
;
15
class
BlacklistIndex
;
16
17
class
BlacklistCommand
:
public
IGlobalSlashCommand
{
18
public
:
19
static
constexpr
std::string_view
k_name
{
"blacklist"
};
20
static
constexpr
std::string_view
k_description
{
"Blacklist a username using the portal (Erarnitox only!)"
};
21
22
explicit
BlacklistCommand
(
AppContext
& ctx);
23
24
void
on_slashcommand
(
const
dpp::slashcommand_t& event)
override
;
25
26
private
:
27
dpp::cluster& discord_;
28
DatabaseExecutor
& db_;
29
BlacklistIndex
& blacklist_index_;
30
};
IGlobalSlashCommand.hpp
BlacklistCommand::k_description
static constexpr std::string_view k_description
Definition
BlacklistCommand.hpp:20
BlacklistCommand::BlacklistCommand
BlacklistCommand(AppContext &ctx)
Definition
BlacklistCommand.cpp:28
BlacklistCommand::k_name
static constexpr std::string_view k_name
Definition
BlacklistCommand.hpp:19
BlacklistCommand::on_slashcommand
void on_slashcommand(const dpp::slashcommand_t &event) override
Definition
BlacklistCommand.cpp:40
BlacklistIndex
Definition
PortalIndex.hpp:23
DatabaseExecutor
Definition
DatabaseExecutor.hpp:14
IGlobalSlashCommand
Definition
IGlobalSlashCommand.hpp:6
AppContext
Definition
AppContext.hpp:12
src
bot_library
commands
portal
BlacklistCommand.hpp
Generated by
1.18.0