droplet
1.3.0
A multipurpose Discord bot with the hacker in mind
Toggle main menu visibility
Loading...
Searching...
No Matches
BugReportCommand.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 <
IFormCommand.hpp
>
11
#include <
IGlobalSlashCommand.hpp
>
12
#include <string_view>
13
14
struct
AppContext
;
15
16
class
BugReportCommand
:
public
IGlobalSlashCommand
,
public
IFormCommand
{
17
public
:
18
static
constexpr
std::string_view
k_name
{
"report_bug"
};
19
static
constexpr
std::string_view
k_description
{
"Report a bug to the developers"
};
20
21
explicit
BugReportCommand
(
AppContext
& ctx);
22
23
void
on_slashcommand
(
const
dpp::slashcommand_t& event)
override
;
24
void
on_form_submit
(
const
dpp::form_submit_t& event)
override
;
25
26
private
:
27
dpp::cluster& discord_;
28
};
IFormCommand.hpp
IGlobalSlashCommand.hpp
BugReportCommand::on_form_submit
void on_form_submit(const dpp::form_submit_t &event) override
Definition
BugReportCommand.cpp:71
BugReportCommand::BugReportCommand
BugReportCommand(AppContext &ctx)
Definition
BugReportCommand.cpp:26
BugReportCommand::k_name
static constexpr std::string_view k_name
Definition
BugReportCommand.hpp:18
BugReportCommand::on_slashcommand
void on_slashcommand(const dpp::slashcommand_t &event) override
Definition
BugReportCommand.cpp:34
BugReportCommand::k_description
static constexpr std::string_view k_description
Definition
BugReportCommand.hpp:19
IFormCommand
Definition
IFormCommand.hpp:6
IGlobalSlashCommand
Definition
IGlobalSlashCommand.hpp:6
AppContext
Definition
AppContext.hpp:12
src
bot_library
commands
bug_report
BugReportCommand.hpp
Generated by
1.18.0