Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

guild templates #7

Merged
merged 7 commits into from
Apr 5, 2021
Merged

Conversation

webtax-gh
Copy link
Member

@webtax-gh webtax-gh commented Apr 5, 2021

introduces a dtemplate and dtemplate_map class and the following functions

/** Get a template */
void template_get(std::string code, command_completion_event_t callback);

/** Create a new guild based on a template. */
void guild_create_from_template(std::string code, std::string name, command_completion_event_t callback);

/** Get guild templates */
void guild_templates_get(snowflake guild_id, command_completion_event_t callback);

/** Creates a template for the guild */
void guild_template_create(snowflake guild_id, std::string name, std::string description, command_completion_event_t callback);

/** Syncs the template to the guild's current state. */
void guild_template_sync(snowflake guild_id, std::string code, command_completion_event_t callback);

/** Modifies the template's metadata. */
void guild_template_modify(snowflake guild_id, std::string code, std::string name, std::string description, command_completion_event_t callback);

/** Deletes the template */
void guild_template_delete(snowflake guild_id, std:: string code, command_completion_event_t callback);

everything should be done i just need to test everything

@webtax-gh webtax-gh changed the title templates WIP guild templates Apr 5, 2021
@braindigitalis braindigitalis merged commit fc09e69 into brainboxdotcc:master Apr 5, 2021
braindigitalis pushed a commit that referenced this pull request Jan 26, 2022
braindigitalis pushed a commit that referenced this pull request May 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants