D++ (DPP)
C++ Discord API Bot Library
|
Application command permissions allow you to enable or disable commands for specific users or roles within a guild. More...
#include <appcommand.h>
Public Member Functions | |
command_permission ()=default | |
Construct a new command permission object. More... | |
command_permission (snowflake id, command_permission_type &t, bool permission) | |
Construct a new command permission object. More... | |
Public Attributes | |
snowflake | id |
the ID of the role or user More... | |
command_permission_type | type |
the type of permission More... | |
bool | permission |
true to allow, false, to disallow More... | |
Application command permissions allow you to enable or disable commands for specific users or roles within a guild.
|
default |
Construct a new command permission object.
dpp::command_permission::command_permission | ( | snowflake | id, |
command_permission_type & | t, | ||
bool | permission | ||
) |
Construct a new command permission object.
id | The ID of the role or user |
t | The permission type |
permission | True to allow, false, to disallow |
snowflake dpp::command_permission::id |
the ID of the role or user
bool dpp::command_permission::permission |
true to allow, false, to disallow
command_permission_type dpp::command_permission::type |
the type of permission