Skip to content

Add server templates in response to #659

Mateusz Brawański requested to merge github/fork/IDoEverything/master into master

Created by: IDoEverything

Summary

Addresses #659 (closed). Implements server templates.

Details

Discord recently introduced server templates, with which you can create another guild from an existing guild, which copies over channels, roles, and some other data like afk timeout and region. Implemented everything listed in the docs.

Changes proposed

  • Add the DiscordGuildTemplate object.
  • Add the templates endpoint.
  • Implement the GetTemplateAsync and CreateGuildFromTemplateAsync methods in DiscordClient and DiscordRestClient.
  • Implement the GetTemplatesAsync, CreateTemplateAsync, ModifyTemplateAsync, SyncTemplateAsync and DeleteTemplateAsync methods in DiscordGuild.
  • Create partial guild object DiscordTemplateGuild for the source guild in DiscordGuildTemplate.
  • Add payloads for create template and create guild from template.

Merge request reports

Loading