Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
d1761a6
basic structure
Plerx2493 Jul 5, 2024
e9b4b55
Improve Bindings, implement VerifySignature and implement DiscordHttp…
Plerx2493 Jul 11, 2024
02ec5df
Merge branch 'refs/heads/master' into plerx/dev/HttpInteractions
Plerx2493 Jul 11, 2024
7f2b391
Add http interaction injection
Plerx2493 Jul 11, 2024
69502d8
Respond to pings
Plerx2493 Jul 11, 2024
d57ccd1
Correctly parse the interaction
Plerx2493 Jul 11, 2024
4dea04c
remove nested sln
Plerx2493 Jul 11, 2024
cc5a953
Make interaction cancelble to cancel on http request cancelation
Plerx2493 Jul 12, 2024
9b53d73
Add AspNetCore extension and add verifykey to DiscordApplication
Plerx2493 Jul 12, 2024
97e02c5
Add missing xml docs
Plerx2493 Jul 12, 2024
0780610
fix formatting, project name and csproj config
Plerx2493 Jul 12, 2024
e4fb171
Add PackageId
Plerx2493 Jul 12, 2024
01b075b
Remove RootNamespace from csproj
Plerx2493 Jul 12, 2024
2716487
Maybe write the bytes directly, untested
Plerx2493 Jul 12, 2024
1dfef85
Apply namespace rename and remove unused usings
Plerx2493 Jul 12, 2024
73b98d2
Package description and tags and also reword method description
Plerx2493 Jul 17, 2024
4370c19
explicitly add outputtype and add another package tag
Plerx2493 Jul 17, 2024
555165c
Better exception if discord closed the connection
Plerx2493 Jul 17, 2024
2dbe5fb
Merge branch 'refs/heads/master' into plerx/dev/HttpInteractions
Plerx2493 Jul 17, 2024
2859fc2
fix merge mistake
Plerx2493 Jul 17, 2024
787eec6
remove NL
Plerx2493 Jul 17, 2024
3d5f2f3
Add CancellationToken in HandleDiscordInteractionAsync in aspnet package
Plerx2493 Jul 17, 2024
d2e2f83
another missing ct
Plerx2493 Jul 17, 2024
96ad68c
and another ct
Plerx2493 Jul 17, 2024
4b17461
Take ArraySegments to allow more optimizations
Plerx2493 Jul 17, 2024
623e752
XMLDocs and formatting
Plerx2493 Jul 17, 2024
948d790
add mising xmldoc
Plerx2493 Jul 18, 2024
96c1765
Parse the interaction like we do it in D*spatch
Plerx2493 Jul 18, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add missing xml docs
  • Loading branch information
Plerx2493 committed Jul 12, 2024
commit 97e02c5feeaba9bfe917c7da3846f42cd67cb4b0
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ namespace DSharpPlus.HttpInteraction.AspNetCore;
public static class IEndpointRouteBuilderExtensions
Comment thread
Plerx2493 marked this conversation as resolved.
Outdated
{
/// <summary>
///
/// Adds handling of Discords http interactions to the specified route.
/// </summary>
/// <returns></returns>
/// <returns>A <see cref="RouteHandlerBuilder"/> that can be used to further customize the endpoint.</returns>
public static RouteHandlerBuilder AddDiscordHttpInteractions(this IEndpointRouteBuilder builder, [StringSyntax("Route")] string url = "/interactions") => builder.MapPost(url, HandleDiscordInteractionAsync);
Comment thread
Plerx2493 marked this conversation as resolved.
Outdated

private static async Task HandleDiscordInteractionAsync(HttpContext httpContext, DiscordClient client)
Expand Down