Permissions class, for representing and manipulating Permission values.
More...
#include <Utilities.hpp>
◆ addPermissions()
void DiscordCoreAPI::Permissions::addPermissions |
( |
const std::vector< Permission > & |
permissionsToAdd | ) |
|
◆ checkForPermission()
- Parameters
-
guildMember | The GuildMember who to check the Permissions of. |
channel | The Channel within which to check for the Permission's presence. |
permission | A Permission to check the current Channel for. |
- Returns
- bool A bool suggesting the presence of the chosen Permission.
Definition at line 496 of file Utilities.cpp.
◆ displayPermissions()
std::vector< std::string > DiscordCoreAPI::Permissions::displayPermissions |
( |
| ) |
|
- Returns
- std::vector A vector full of strings of the Permissions that are in the input std::string's value.
Definition at line 530 of file Utilities.cpp.
◆ getAllPermissions()
std::string DiscordCoreAPI::Permissions::getAllPermissions |
( |
| ) |
|
|
static |
◆ getCurrentChannelPermissions()
std::string DiscordCoreAPI::Permissions::getCurrentChannelPermissions |
( |
const GuildMember & |
guildMember, |
|
|
const ChannelData & |
channel |
|
) |
| |
|
static |
- Parameters
-
- Returns
- std::string A string containing the final Permission's value for a given Channel.
Definition at line 491 of file Utilities.cpp.
◆ getCurrentGuildPermissions()
std::string DiscordCoreAPI::Permissions::getCurrentGuildPermissions |
( |
const GuildMember & |
guildMember | ) |
|
|
static |
◆ getCurrentPermissionString()
std::string DiscordCoreAPI::Permissions::getCurrentPermissionString |
( |
| ) |
|
◆ removePermissions()
void DiscordCoreAPI::Permissions::removePermissions |
( |
const std::vector< Permission > & |
permissionsToRemove | ) |
|
The documentation for this class was generated from the following files: