droplet
1.3.0
A multipurpose Discord bot with the hacker in mind
Toggle main menu visibility
Loading...
Searching...
No Matches
IGlobalSlashCommand.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <dpp/cluster.h>
4
#include <dpp/dispatcher.h>
5
6
class
IGlobalSlashCommand
{
7
public
:
8
virtual
~IGlobalSlashCommand
() =
default
;
9
10
std::string
command_name
;
11
std::string
command_description
;
12
std::vector<dpp::command_option>
command_options
;
13
bool
admin_only
{
false
};
14
15
virtual
void
on_slashcommand
(
const
dpp::slashcommand_t& event) = 0;
16
};
IGlobalSlashCommand
Definition
IGlobalSlashCommand.hpp:6
IGlobalSlashCommand::admin_only
bool admin_only
Definition
IGlobalSlashCommand.hpp:13
IGlobalSlashCommand::on_slashcommand
virtual void on_slashcommand(const dpp::slashcommand_t &event)=0
IGlobalSlashCommand::command_description
std::string command_description
Definition
IGlobalSlashCommand.hpp:11
IGlobalSlashCommand::command_options
std::vector< dpp::command_option > command_options
Definition
IGlobalSlashCommand.hpp:12
IGlobalSlashCommand::~IGlobalSlashCommand
virtual ~IGlobalSlashCommand()=default
IGlobalSlashCommand::command_name
std::string command_name
Definition
IGlobalSlashCommand.hpp:10
src
bot_library
bot
core
interfaces
include
IGlobalSlashCommand.hpp
Generated by
1.18.0