Add server templates in response to #659
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.
Notes
Hope I did fine for my first PR