deleteGuildTemplate method
Delete a guild template.
Implementation
Future<GuildTemplate> deleteGuildTemplate(Snowflake id, String code) async {
final route = HttpRoute()
..guilds(id: id.toString())
..templates(code: code);
final request = BasicRequest(route, method: 'DELETE');
final response = await client.httpHandler.executeSafe(request);
final template = parseGuildTemplate(response.jsonBody as Map<String, Object?>);
// Templates aren't cached, so we don't need to remove it from any cache, but it still contains a nested user object we can cache.
client.updateCacheWith(template);
return template;
}