3249 Commits (0dc8416dbec09e6465eee8fb21617bf2945750f8)
 

Author SHA1 Message Date
  emorell96 0dc8416dbe created a public RestToken object that is used when providing tokens to the user. 5 years ago
  emorell96 ef9e66cbe5 added a token object to be read from Discord's token endpoint. 5 years ago
  emorell96 0b13e0efa1 added 2 token types: refresh and code. Refresh is a refresh token, code is the code given by discord authorization code flow. 5 years ago
  emorell96 c242d81af9 added a SendAsync method to IRestClient that takes an IEnumerable<KeyValuePair<string?, string?>> in order to be able to form a FormUrlEncodedContent which you need for getting the tokens. 5 years ago
  emorell96 37514e9102 removed some pages in the blazor project. 5 years ago
  emorell96 2ec1ed72b0 added showcasing for the refresh token methods. 5 years ago
  emorell96 1c664060ab removed some part of the blazor sample. 5 years ago
  emorell96 b6ed3dd314 removed the provider since it's useless now, fixed the build break. Forgot to rename in the sample AddScoped... to AddDiscordRestClient(). 5 years ago
  emorell96 07bc947548 modified the ServicesCollectionExtentions to only add Singleton DiscordRestClient so that the DiscordRestClient is a singleton and we do not lose the rate limiter but the HttpClient is still regenareted every time the provider is called through the IHttpClientFactory instead of using new HttpClient(new HttpClientHandler). 5 years ago
  emorell96 552e70a937 modified the extension methods to not use the HttpClientFactoryRestClientProvider since it's unnecessary, I can just use a delegate in the the config pointing to the HttpClientFactoryRestClient. 5 years ago
  emorell96 1d8df45450 added documentation using .net conventions. 5 years ago
  emorell96 8137ca1eca added documentation to this method. 5 years ago
  emorell96 67ace364a4 changed AddTransient to AddScoped when adding HttpClientFactoryRestClientProvider as a service in the AddScopedDiscordRestClient to stay consistent. AddScopedDiscordRestClient adds scoped services, AddTransientDiscordRestClient adds transient services. 5 years ago
  emorell96 1c31bc8abe renamed names to follow convention HttpClientFactory + RestClient or RestClientProvider. 5 years ago
  emorell96 67d833a8b5 removed modifications made to this project while thinking of how to implement my changes. 5 years ago
  emorell96 75c1e41a63 added the blazor simple sample with the new IServiceCollection extension usage example. Hopefully it shows what I mean of how much it simplifies handling DI with the library. I think the greatest benefits are the user could use polly or it could be integrated dirrectly into the library, or also for thing like ASP.NET projects where usually you'd use ScopedServices for each page, you could inject a DiscordRestClient safely. 5 years ago
  emorell96 b745a3cd6d Added two Extension methods "AddScopedDiscordRestClient" and "AddTransientDiscordRestClient" to allow for easier addition of scoped, and transient DiscordRestClients, it's left up to the user which one is more convenient to use for his/her application, and at the end of the day it doesn't risk running out of sockets since it uses IHttpClientFactory under the hood. 5 years ago
  emorell96 7ce31408be added a dependency in Microsoft.Extensions.DependencyInjection.Abstractions and Microsoft.Extensions.Http to add an extension method to make it easy to add DiscordRestClients without risking socket exhaustation. 5 years ago
  emorell96 87f530c2f1 added a HttpClientFactoryClient and HttpClientFactoryClientProvider that use IHttpClientFactory to create HttpClients to avoid having to recreate an HtppClient every time a DiscordRestClient is created which could lead to socket exhaustation. 5 years ago
  emorell96 dc589653df added simple blazor project as a sample using only Discord.Net.Core and Discord.Net.Rest. No websockets. 5 years ago
  Paulo 1b64d19c84
meta: 2.3.1 (#1795) 5 years ago
  Paulo d41aeee4fe
fix: Audit log UserId can be null (#1794) 5 years ago
  Alex Gravely d2518db9a8
fix: Update Webhook ChannelId from model change (#1791) 5 years ago
  Paulo 51b7afe2a6
misc: Add remark regarding CustomStatus as the activity (#1774) 5 years ago
  NeKz f794163ffa
fix: NullReferenceException in pin/unpin audit logs (#1780) 5 years ago
  NeKz 6ac5ea1cbb
fix: Add ChannelType property to ChannelInfo audit log (#1786) 5 years ago
  Antonio Zdravkov Nikolov 0fc713a897
fix: Private methods aren't added as commands (#1773) 5 years ago
  Yeba 73e5cc2fbc
fix: Deadlock in DiscordShardedClient when Ready is never received (#1761) 5 years ago
  Paulo 83e88f4fb9
meta: Bump version to 2.3.1-dev 5 years ago
  Paulo 6bb54577ab
meta: 2.3.0 5 years ago
  Paulo 2095701665
fix: Missing MessageReference when sending files 5 years ago
  quinchs 8b25c9bbfb
feature: Add GuildUser IsPending property (#1731) 5 years ago
  Paulo 225550dc5a
feature: Add MessageFlags and AllowedMentions to message modify (#1724) 5 years ago
  Paulo c683b2901d
feature: Add user public flags (#1722) 5 years ago
  Paulo 6a62c4770c
feature: Add role tags (#1721) 5 years ago
  Paulo 5934c7949a
misc: VoiceRegions and related changes (#1720) 5 years ago
  Paulo 4a7f8fec93
fix: Move and fix internal AllowedMentions object (#1727) 5 years ago
  Paulo a4d32d366d
fix: IMessage.Embeds docs remarks 5 years ago
  Still Hsu accd3510df
docs: Add alternative documentation link 5 years ago
  Fyers dd2e524ff9
fix: Invite and InviteMetadata properties (#1639) 5 years ago
  Still Hsu 36de7b25f3
Temporarily disable StyleCops until all the fixes are impl'd 5 years ago
  Still Hsu a48e46de52
docs: Fix the missing "In This Article" section 5 years ago
  Still Hsu 2cd1880228
docs: Add minor tweaks to DiscordSocketConfig docs strings 5 years ago
  Still Hsu e31cdc7586
docs: Fix MaxWaitBetweenGuildAvailablesBeforeReady docs string 5 years ago
  Still Hsu 4988a0764d
Update framework version for tests to Core 3.1 to comply with LTS 5 years ago
  Still Hsu e0f8737c35
Add initial StyleCops style enforcement 5 years ago
  Still Hsu 8f8078e969
Update project link 5 years ago
  Still Hsu d761846638
Add updated libraries for LastModified 5 years ago
  Still Hsu 28a6f97d62
Update Docfx.Plugins.LastModified to v1.2.4 5 years ago
  Still Hsu 833ee42a1f
Cleanup GatewayReconnectException docs 5 years ago