droplet
1.3.0
A multipurpose Discord bot with the hacker in mind
Toggle main menu visibility
Loading...
Searching...
No Matches
InviteCommand.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
15
class
InviteCommand
:
public
IGlobalSlashCommand
{
16
public
:
17
static
constexpr
std::string_view
k_name
{
"join_erarnitox"
};
18
static
constexpr
std::string_view
k_description
{
"Get invited to Erarnitox's discord server"
};
19
20
explicit
InviteCommand
(
AppContext
& ctx);
21
22
void
on_slashcommand
(
const
dpp::slashcommand_t& event)
override
;
23
};
IGlobalSlashCommand.hpp
IGlobalSlashCommand
Definition
IGlobalSlashCommand.hpp:6
InviteCommand::k_name
static constexpr std::string_view k_name
Definition
InviteCommand.hpp:17
InviteCommand::k_description
static constexpr std::string_view k_description
Definition
InviteCommand.hpp:18
InviteCommand::on_slashcommand
void on_slashcommand(const dpp::slashcommand_t &event) override
Definition
InviteCommand.cpp:31
InviteCommand::InviteCommand
InviteCommand(AppContext &ctx)
Definition
InviteCommand.cpp:22
AppContext
Definition
AppContext.hpp:12
src
bot_library
commands
invite
InviteCommand.hpp
Generated by
1.18.0