DiscordCoreAPI
A Discord bot library written in C++, with custom asynchronous coroutines.
Loading...
Searching...
No Matches
Utilities

For utility classes/functions. More...

Collaboration diagram for Utilities:

Namespaces

namespace  DiscordCoreAPI::Colors
 Color constants for use in the EmbedData color values.
 

Classes and Structures

struct  DiscordCoreAPI::BaseFunction
 Base class for the command classes. More...
 
struct  DiscordCoreAPI::BaseFunctionArguments
 Base arguments for the command classes. More...
 
class  DiscordCoreAPI::ButtonCollector
 ButtonCollector, for collecting button input from one or more Users. More...
 
struct  DiscordCoreAPI::ButtonResponseData
 Button response data. More...
 
class  DiscordCoreAPI::CommandData
 Command data, for functions executed by the CommandController. More...
 
class  DiscordCoreAPI::CoRoutine< RTy >
 A CoRoutine - representing a potentially asynchronous operation/function. More...
 
class  DiscordCoreAPI::CoRoutine< void >
 A CoRoutine - representing a potentially asynchronous operation/function. More...
 
struct  DiscordCoreAPI::CoRoutineError
 An error type for CoRoutines. More...
 
class  DiscordCoreAPI::ModalCollector
 ModalCollector, for collecting modal text input from one or more Users. More...
 
struct  DiscordCoreAPI::ModalResponseData
 Button response data. More...
 
class  DiscordCoreAPI::NewThreadAwaiter< RTy >
 An awaitable that can be used to launch the CoRoutine onto a new thread - as well as return the handle for stoppping its execution. More...
 
class  DiscordCoreAPI::SelectMenuCollector
 SelectMenuCollector, for collecting select-menu input from one or more Users. More...
 
struct  DiscordCoreAPI::SelectMenuResponseData
 Select menu response data. More...
 

Enumerations

enum class  DiscordCoreAPI::CoRoutineStatus { DiscordCoreAPI::CoRoutineStatus::Idle = 0 , DiscordCoreAPI::CoRoutineStatus::Running = 1 , DiscordCoreAPI::CoRoutineStatus::Complete = 2 , DiscordCoreAPI::CoRoutineStatus::Cancelled = 3 }
 The current status of the associated CoRoutine. More...
 
enum class  DiscordCoreAPI::TimeFormat : char {
  DiscordCoreAPI::TimeFormat::LongDate = 'D' , DiscordCoreAPI::TimeFormat::LongDateTime = 'F' , DiscordCoreAPI::TimeFormat::LongTime = 'T' , DiscordCoreAPI::TimeFormat::ShortDate = 'd' ,
  DiscordCoreAPI::TimeFormat::ShortDateTime = 'f' , DiscordCoreAPI::TimeFormat::ShortTime = 't'
}
 Time formatting methods. More...
 

Enumeration Type Documentation

◆ CoRoutineStatus

Enumerator
Idle 

Idle.

Running 

Running.

Complete 

Complete.

Cancelled 

Cancelled.

Definition at line 38 of file CoRoutine.hpp.

◆ TimeFormat

enum class DiscordCoreAPI::TimeFormat : char
strong
Enumerator
LongDate 

"20 April 2021" - Long Date

LongDateTime 

"Tuesday, 20 April 2021 16:20" - Long Date/Time

LongTime 

"16:20:30" - Long Time

ShortDate 

"20/04/2021" - Short Date

ShortDateTime 

"20 April 2021 16:20" - Short Date/Time

ShortTime 

"16:20" - Short Time

Definition at line 1330 of file Utilities.hpp.