Coven.Chat.Discord 2.0.1

dotnet add package Coven.Chat.Discord --version 2.0.1
                    
NuGet\Install-Package Coven.Chat.Discord -Version 2.0.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Coven.Chat.Discord" Version="2.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Coven.Chat.Discord" Version="2.0.1" />
                    
Directory.Packages.props
<PackageReference Include="Coven.Chat.Discord" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Coven.Chat.Discord --version 2.0.1
                    
#r "nuget: Coven.Chat.Discord, 2.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Coven.Chat.Discord@2.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Coven.Chat.Discord&version=2.0.1
                    
Install as a Cake Addin
#tool nuget:?package=Coven.Chat.Discord&version=2.0.1
                    
Install as a Cake Tool

Coven.Chat.Discord

Discord chat adapter (leaf). Bridges a Discord channel to Coven.Chat entries with a daemon and default windowing suitable for Discord limits.

What’s Inside

  • Config: DiscordClientConfig (bot token, ChannelId).
  • Gateway + Session: DiscordGatewayConnection, DiscordChatSessionFactory.
  • Transmuter: DiscordTransmuter (DiscordEntry ↔ ChatEntry).
  • Journals: IScrivener<DiscordEntry>, IScrivener<ChatEntry>.
  • Daemon: DiscordChatDaemon.
  • Windowing defaults: paragraph OR 2000‑char cap; shatter drafts accordingly.

Prerequisites

  • Discord bot token with Message Content intent enabled.
  • Bot invited to the server and has read/write permissions for the target channel.
  • Channel ID (copy via Discord Developer Mode).

Usage

using Coven.Chat.Discord;

services.AddDiscordChat(new DiscordClientConfig
{
    BotToken = Environment.GetEnvironmentVariable("DISCORD_BOT_TOKEN")!,
    ChannelId = ulong.Parse(Environment.GetEnvironmentVariable("DISCORD_CHANNEL_ID")!)
});

This registers the Discord client, session factory, journals, transmuter, daemon, and windowing/shattering tuned for Discord.

See Also

  • Branch: Coven.Chat.
  • Sample: src/samples/01.DiscordAgent.
Product Compatible and additional computed target framework versions.
.NET 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.1 343 11/11/2025
2.0.0 316 11/11/2025