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

For creating an invite to a given Channel. More...

#include <ChannelEntities.hpp>

Public Data Members

Snowflake channelId {}
 The id of the Channel to create the invite for.
 
int32_t maxAge { 0 }
 Duration of invite in seconds before expiry, or 0 for never.between 0 and 604800 (7 days) 86400 (24 hours).
 
int32_t maxUses { 0 }
 Max number of uses or 0 for unlimited.between 0 and 100.
 
std::string reason {}
 Reason for creating the invite.
 
Snowflake targetApplicationId {}
 The id of the embedded application to open for this invite, required if target_type is 2.
 
InviteTargetTypes targetType {}
 The type of target for this voice Channel invite.
 
Snowflake targetUserId {}
 Id of the user whose stream to display for this invite, required if target_type is 1.
 
bool temporary { false }
 Whether this invite only grants temporary membership.
 
bool unique { false }
 If true, don't try to reuse a similar invite (useful for creating many unique one time use invites).
 

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