4f9b48c41
Fix invalid parsing of the name field on `SocketInteractionDataOption`. Changed `Member` to `User` on SocketInteraction. by
2021-04-05 02:39:16 -0300
9d7985283
added updated instructions. by
2021-03-23 23:29:38 -0700
4aaff039b
removed the 2 extra dependencies. by
2021-03-23 23:23:37 -0700
35e0d1068
added a HttpClientFactoryRestClientProvider to avoid having to expose a HttpClientFactoryRestClient. by
2021-03-23 23:20:26 -0700
c3fbbe118
changed incorrect namespace. by
2021-03-23 23:19:53 -0700
1108009fe
removed the extensions from here into a sample to avoid adding 2 new dependencies. by
2021-03-23 23:19:38 -0700
0910d059d
changed namespace from 04 to 05 by
2021-03-23 23:19:17 -0700
cd0afcbc4
modified the startup to use the new AddDiscordRestClient which takes a client id and a client secret by
2021-03-23 23:18:36 -0700
d89f1acc9
moved the service extensions to the sample to avoid addind 2 dependencies. by
2021-03-23 23:17:55 -0700
9eb7026fe
change namespace to 05 by
2021-03-23 23:15:39 -0700
64514661a
added ClientId, and ClientSecret. They default to null to avoid incompatibilities with previous code. by
2021-03-23 22:35:20 -0700
44ac70a77
added the clientId, and clientSecret parameters to the construction of the DiscordRestApiClient by
2021-03-23 22:34:47 -0700
b4057669f
added a GetTokenAsync method that calls the Api method, and transform the raw Api Token to a RestToken. by
2021-03-23 22:34:09 -0700
207514650
implemented the SendAsync that takes IEnumerable<KeyValuePair<string?, string?>> in order to create a FormUrlEncodedContent and send the request with UrlEncoded content. by
2021-03-23 22:33:30 -0700
56f21bbe3
Added ClientId and ClientSecret to the library. These can be left null without any effect to the rest of the library. Just don't expect the refresh methods to work. by
2021-03-23 22:32:32 -0700
05717cf93
new FormRestRequest used for sending form data in url encoded format. by
2021-03-23 22:28:33 -0700
0dc8416db
created a public RestToken object that is used when providing tokens to the user. by
2021-03-23 22:27:40 -0700
ef9e66cbe
added a token object to be read from Discord's token endpoint. by
2021-03-23 22:26:25 -0700
0b13e0efa
added 2 token types: refresh and code. Refresh is a refresh token, code is the code given by discord authorization code flow. by
2021-03-23 22:26:02 -0700
c242d81af
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. by
2021-03-23 22:25:12 -0700
37514e910
removed some pages in the blazor project. by
2021-03-23 22:24:05 -0700
2ec1ed72b
added showcasing for the refresh token methods. by
2021-03-23 22:23:19 -0700
1c664060a
removed some part of the blazor sample. by
2021-03-23 22:22:54 -0700
ec3bba602
(refs/pull/1807/head)
Fixed overlooked code error. by
2021-03-23 06:23:44 -0400
b6ed3dd31
removed the provider since it's useless now, fixed the build break. Forgot to rename in the sample AddScoped... to AddDiscordRestClient(). by
2021-03-22 13:29:22 -0700
07bc94754
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). by
2021-03-22 13:11:15 -0700
eabf270ea
Fix slash command doc by
2021-03-22 14:03:31 -0300
552e70a93
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. by
2021-03-22 02:31:02 -0700
1d8df4545
added documentation using .net conventions. by
2021-03-22 01:40:28 -0700
8137ca1ec
added documentation to this method. by
2021-03-22 01:31:53 -0700
67ace364a
changed AddTransient to AddScoped when adding HttpClientFactoryRestClientProvider as a service in the AddScopedDiscordRestClient to stay consistent. AddScopedDiscordRestClient adds scoped services, AddTransientDiscordRestClient adds transient services. by
2021-03-22 01:25:45 -0700
1c31bc8ab
renamed names to follow convention HttpClientFactory + RestClient or RestClientProvider. by
2021-03-22 01:19:18 -0700
67d833a8b
removed modifications made to this project while thinking of how to implement my changes. by
2021-03-22 00:28:28 -0700
75c1e41a6
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. by
2021-03-22 00:24:27 -0700
b745a3cd6
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. by
2021-03-22 00:21:41 -0700
7ce31408b
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. by
2021-03-22 00:15:49 -0700
87f530c2f
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. by
2021-03-22 00:14:00 -0700
dc589653d
added simple blazor project as a sample using only Discord.Net.Core and Discord.Net.Rest. No websockets. by
2021-03-22 00:11:46 -0700
21e52e0ec
(refs/pull/1801/head)
Use the guild member provided by the event when present by
2021-03-16 12:29:28 +0000
4808d8a61
Add guild member property for reaction by
2021-03-16 12:24:25 +0000
362ca1e67
(refs/pull/1800/head)
Fix spelling in SnowflakeUtils.cs by
2021-03-15 23:52:03 +0000
18a8278dd
(refs/pull/1797/head)
Added main as proxy task by
2021-03-15 17:19:34 -0300
7092de911
Updated code by
2021-03-14 18:40:40 -0300
c2ddb6f02
Removed text async by
2021-03-14 18:37:11 -0300
c2d018ca8
(refs/pull/1743/head)
misc: Add comment regarding RestUser Status by
2021-03-11 19:58:24 +0530
1b64d19c8
(tag: 2.3.1)
meta: 2.3.1 (#1795) by
2021-03-10 16:59:38 -0300
e0765690d
(refs/pull/1795/head)
meta: 2.3.1 by
2021-03-10 16:52:49 -0300
d41aeee4f
fix: Audit log UserId can be null (#1794) by
2021-03-10 16:50:14 -0300
d9fe603d2
(refs/pull/1794/head)
fix: Audit log UserId can be null by
2021-03-10 16:47:39 -0300
d2518db9a
fix: Update Webhook ChannelId from model change (#1791) by
2021-03-10 14:22:00 -0500
51b7afe2a
misc: Add remark regarding CustomStatus as the activity (#1774) by
2021-03-10 16:07:31 -0300
f794163ff
fix: NullReferenceException in pin/unpin audit logs (#1780) by
2021-03-10 20:07:19 +0100
6ac5ea1cb
fix: Add ChannelType property to ChannelInfo audit log (#1786) by
2021-03-10 18:50:48 +0100
2514602f7
(refs/pull/1791/head)
Update Webhook Channel ID from Model change by
2021-03-04 15:49:42 -0500
82217b66d
(refs/pull/1787/head)
Updated API version by
2021-03-02 09:37:58 +0100
902a8e25c
(refs/pull/1786/head)
fix: Add ChannelType property to ChannelInfo audit log by
2021-02-28 15:08:29 +0100
b5ae0d856
Merge branch 'dev' of https://github.com/discord-net/Discord.Net into dev by
2021-02-25 13:18:00 -0500
8eb281677
(refs/pull/1781/head)
feature: Add GetEmotesAsync to IGuild by
2021-02-21 17:30:32 +0100
3e9b027f5
(refs/pull/1733/head)
Merge pull request #1 from SlenderPlays/SlashCommandService by
2021-02-18 17:50:37 -0400
af9db9c3f
Merge pull request #1 from SlenderPlays/SlashCommandServiceV2 by
2021-02-18 21:01:54 +0200
4019d512c
Implemented ParameterName for custom names, implemented a public BuildCommands for those who want to register commands themselves and added support for bool? and int?. There will be a PR soon. by
2021-02-17 16:39:51 +0200
0beef228d
(refs/pull/1780/head)
fix: NullReferenceException in audit log types by
2021-02-17 02:46:52 +0100
6ba456a1d
Implemented [Choice( [] , [] )] and [Required] Attributes. Details: There is nothing really to be said, it's simple and self-explanatory. The only thing I would want to implement is to add support for bool? and int? param types because, as of now, you don't know if the user passed False or just didn't pass anything. In any case, I personally don't suspect it's going to be hard to do. After I implement this I will create a PR on the original Discord.Net Repo. by
2021-02-16 17:36:18 +0200
c76fdec8d
Implemented Global Attribute and added a way to register all commands in particualr guilds. Details: There's nothing much to say, just added a variable to track with modules/commands/command groups have the global attribute and depending on that I register them globally or locally. There is currently no way to implement two commands with the same name, but one on the guild level and one on the global level. There is also currently no implemented way to register only some commands to only some guilds - this could be done through attributes, but another solution for users who want to do complex stuff would be to just give them the built commands and let them maually register them as they see fit. by
2021-02-16 15:24:41 +0200
50a88e09c
Implemented SubCommands and SubCommandGroups properly. by
2021-02-15 22:45:24 +0200
0a2f20773
(refs/pull/1778/head)
removed no longer necessary unit tests by
2021-02-14 23:29:21 +0100
1fe139f01
removed broken URI check from EmbedBuilder by
2021-02-13 01:28:49 +0100
4223fa8ff
Implemented basic parameter recognition and passing them to the method. by
2021-02-14 16:20:49 +0200
6473705b5
(refs/pull/1776/head)
feature: add enterTyping parameter to CommandService.ExecuteAsync for client to enter typing state when a command is valid by
2021-02-13 17:10:09 -0800
f4b321429
Implemented the most basic form of the command service. Does not yet parse arguments, nor does it register commands. Also added to the aforementioned dev-test project. by
2021-02-11 16:37:47 +0200
16f6a4c48
Fixed build errors and started an example project for development purposes and to be a starting-off point for newcomers to the slash command ecosystem, by
2021-02-10 21:22:15 +0200
f05e0159b
(refs/pull/1774/head)
Change wording by
2021-02-09 21:30:59 -0300
6b2b9db98
Add remark instead of exception by
2021-02-09 21:28:12 -0300
0fc713a89
fix: Private methods aren't added as commands (#1773) by
2021-02-10 02:04:32 +0200
2818777b2
(refs/pull/1773/head)
get private methods(backward compatibility) by
2021-02-09 23:39:49 +0200
2791a19a7
Standardise doc string by
2021-02-07 16:24:42 +0000
ef1f52ab2
Remove debug code and add param documentation by
2021-02-07 15:53:22 +0000
14477aee0
Throw exception with CustomStatus by
2021-02-06 03:09:56 -0300
ae47f6bee
Fix global user not clearing (may cause other issues) by
2021-02-04 17:06:57 +0000
260ae1a19
(refs/pull/1766/head)
Finish up by add methods to interfaces by
2021-02-02 17:14:22 +0000
426e65544
Remove client parameter to make creating a MessageCache possible on startup by
2021-02-02 15:34:34 +0000
06884853f
Fix mistake: Use IMessageCache for SocketGroupChannel by
2021-02-02 14:56:38 +0000
89b902a9f
Use IMessageCache which can create itself by
2021-02-02 14:39:59 +0000
ad67e17ff
Create IMessageCache by
2021-02-02 14:18:44 +0000
fe4c6fbd4
(refs/pull/1765/head)
Fix example logging by
2021-02-02 09:46:56 +0000
9b4d8feca
Compress overload to be consistant by
2021-02-01 23:30:22 +0000
94fedf834
Add optional predicate by
2021-02-01 23:16:38 +0000
3c915f3ba
Add method to clear a SocketGuild's user cache by
2021-02-01 20:43:52 +0000
547e985da
Fix log format by
2021-02-01 19:28:42 +0000
362a97221
Use ilogger instead of old logger by
2021-02-01 19:19:48 +0000
6bf8ddea5
remove client log and logseverity from tests by
2021-02-01 19:16:25 +0000
346a5e4bb
Fix logging in commands by
2021-02-01 18:04:14 +0000
314bb573b
Replace loglevel with loggerfactory in config by
2021-02-01 17:51:43 +0000
78f0fe40d
Definitely not stealing by
2021-02-01 17:48:42 +0000
a2ffb98eb
Add logging package by
2021-02-01 17:09:02 +0000
f93d34812
Remove logmanager, logger, logmessage and logseverity by
2021-02-01 17:04:49 +0000
73e5cc2fb
fix: Deadlock in DiscordShardedClient when Ready is never received (#1761) by
2021-01-31 07:13:09 +0100
dba29e9f3
(refs/pull/1761/head)
Don't wait ready before releasing semaphore by
2021-01-31 03:04:48 -0300
12d516ae0
(refs/pull/1569/head)
Merge branch 'dev' into patch-1 by
2021-01-30 22:03:36 -0500
83e88f4fb
meta: Bump version to 2.3.1-dev by
2021-01-30 23:40:33 -0300