コード例 #1
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 <UserGuild> > GetUserGuilds()
        {
            var guildsResponse = await _client.GetUserGuilds();

            return(JsonConvert.DeserializeObject <List <UserGuild> >(guildsResponse, new UserGuildJsonConverter()));
        }
コード例 #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));
        }