/// <summary>
        /// Get all of the logged in users guilds.
        /// </summary>
        /// <returns>List of all of the logged in users guilds.</returns>
        public async Task <List <UserGuild> > GetUserGuilds()
        {
            var guildsResponse = await _client.GetUserGuilds();

            return(JsonConvert.DeserializeObject <List <UserGuild> >(guildsResponse, new UserGuildJsonConverter()));
        }
Exemplo n.º 2
0
        /// <summary>
        /// Get all of the logged in users guilds.
        /// </summary>
        /// <returns>List of all of the logged in users guilds.</returns>
        public async Task <List <Domain.Discord.Guild> > GetUserGuilds()
        {
            var guilds = await _client.GetUserGuilds();

            return(JsonConvert.DeserializeObject <List <Domain.Discord.Guild> >(guilds));
        }