DiscordCoreAPI
A Discord bot library written in C++, with custom asynchronous coroutines.
Loading...
Searching...
No Matches
DiscordCoreAPI::AutoModerationRules Class Reference

An interface class for the AutoModerationRule related Discord endpoints. More...

#include <AutoModerationEntities.hpp>

Public Member Functions

CoRoutine< AutoModerationRulecreateAutoModerationRuleAsync (CreateAutoModerationRuleData dataPackage)
 Create a particular Auto-Moderation-Rule. More...
 
CoRoutine< void > deleteAutoModerationRuleAsync (DeleteAutoModerationRuleData dataPackage)
 Delete a particular Auto-Moderation-Rule. More...
 
CoRoutine< AutoModerationRulegetAutoModerationRuleAsync (GetAutoModerationRuleData dataPackage)
 Get a particular Auto-Moderation-Rule. More...
 
CoRoutine< std::vector< AutoModerationRule > > listAutoModerationRulesForGuildAsync (ListAutoModerationRulesForGuildData dataPackage)
 Get all of the Guild's Auto-Moderation-Rules. More...
 
CoRoutine< AutoModerationRulemodifyAutoModerationRuleAsync (ModifyAutoModerationRuleData dataPackage)
 Modify a particular Auto-Moderation-Rule. More...
 

Member Function Documentation

◆ createAutoModerationRuleAsync()

CoRoutine< AutoModerationRule > DiscordCoreAPI::AutoModerationRules::createAutoModerationRuleAsync ( CreateAutoModerationRuleData  dataPackage)

Create a particular Auto-Moderation-Rule.

Returns
A CoRoutine containing a AutoModerationRule.

Definition at line 202 of file AutoModerationEntities.cpp.

◆ deleteAutoModerationRuleAsync()

CoRoutine< void > DiscordCoreAPI::AutoModerationRules::deleteAutoModerationRuleAsync ( DeleteAutoModerationRuleData  dataPackage)

Delete a particular Auto-Moderation-Rule.

Returns
A CoRoutine containing a void.

Definition at line 222 of file AutoModerationEntities.cpp.

◆ getAutoModerationRuleAsync()

CoRoutine< AutoModerationRule > DiscordCoreAPI::AutoModerationRules::getAutoModerationRuleAsync ( GetAutoModerationRuleData  dataPackage)

Get a particular Auto-Moderation-Rule.

Returns
A CoRoutine containing a AutoModerationRule.

Definition at line 193 of file AutoModerationEntities.cpp.

◆ listAutoModerationRulesForGuildAsync()

CoRoutine< std::vector< AutoModerationRule > > DiscordCoreAPI::AutoModerationRules::listAutoModerationRulesForGuildAsync ( ListAutoModerationRulesForGuildData  dataPackage)

Get all of the Guild's Auto-Moderation-Rules.

Returns
A CoRoutine containing a vector<AutoModerationRule>.

Definition at line 184 of file AutoModerationEntities.cpp.

◆ modifyAutoModerationRuleAsync()

CoRoutine< AutoModerationRule > DiscordCoreAPI::AutoModerationRules::modifyAutoModerationRuleAsync ( ModifyAutoModerationRuleData  dataPackage)

Modify a particular Auto-Moderation-Rule.

Returns
A CoRoutine containing a AutoModerationRule.

Definition at line 212 of file AutoModerationEntities.cpp.


The documentation for this class was generated from the following files: