internal static RestGuildDiscovery Create(Model model)
        {
            RestGuildDiscovery entity = new RestGuildDiscovery();

            entity.Update(model);
            return(entity);
        }
Exemple #2
0
        public static async Task <RestGuildDiscovery> GetDiscoveryMetadataAsync(IGuild guild, BaseDiscordClient client, RequestOptions options)
        {
            API.GuildDiscoveryJson discovery = await client.ApiClient.GetDiscoveryMetadataAsync(guild.Id, options).ConfigureAwait(false);

            return(RestGuildDiscovery.Create(discovery));
        }