HPD-Agent.Bots.Discord
0.9.5
dotnet add package HPD-Agent.Bots.Discord --version 0.9.5
NuGet\Install-Package HPD-Agent.Bots.Discord -Version 0.9.5
<PackageReference Include="HPD-Agent.Bots.Discord" Version="0.9.5" />
<PackageVersion Include="HPD-Agent.Bots.Discord" Version="0.9.5" />
<PackageReference Include="HPD-Agent.Bots.Discord" />
paket add HPD-Agent.Bots.Discord --version 0.9.5
#r "nuget: HPD-Agent.Bots.Discord, 0.9.5"
#:package HPD-Agent.Bots.Discord@0.9.5
#addin nuget:?package=HPD-Agent.Bots.Discord&version=0.9.5
#tool nuget:?package=HPD-Agent.Bots.Discord&version=0.9.5
HPD-Agent.Bots.Discord
Connect an HPD agent to Discord interactions and optional Gateway message or reaction events.
dotnet add package HPD-Agent.Bots.Discord --version 1.0.0
using HPD.Agent.Bots.Discord;
builder.Services.AddDiscordBot(options =>
{
options.PublicKey = builder.Configuration["Discord:PublicKey"]!;
options.BotToken = builder.Configuration["Discord:BotToken"]!;
options.ApplicationId = builder.Configuration["Discord:ApplicationId"]!;
options.AgentId = "support-agent";
}, registerInfrastructure: true);
var app = builder.Build();
app.MapDiscordWebhook("/discord/interactions");
Set the Discord Interactions Endpoint URL to the mapped route. Configure GatewayToken and an absolute GatewayForwardUrl to receive regular message and reaction events through the Gateway.
Discord supports slash commands, buttons, modals, autocomplete, embeds, attachments, reaction events, and streamed follow-up edits. Permission requests are currently denied automatically rather than rendered as approval buttons.
See the Discord guide for intents, permissions, Gateway behavior, and troubleshooting.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- BouncyCastle.Cryptography (>= 2.7.0)
- HPD-Agent.Bots.Abstractions (>= 0.9.5)
- HPD-Agent.Bots.AspNetCore (>= 0.9.5)
- HPD-Agent.Hosting (>= 0.9.5)
-
net8.0
- BouncyCastle.Cryptography (>= 2.7.0)
- HPD-Agent.Bots.Abstractions (>= 0.9.5)
- HPD-Agent.Bots.AspNetCore (>= 0.9.5)
- HPD-Agent.Hosting (>= 0.9.5)
-
net9.0
- BouncyCastle.Cryptography (>= 2.7.0)
- HPD-Agent.Bots.Abstractions (>= 0.9.5)
- HPD-Agent.Bots.AspNetCore (>= 0.9.5)
- HPD-Agent.Hosting (>= 0.9.5)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.