CodeLogic.SocialConnect
4.5.1
See the version list below for details.
dotnet add package CodeLogic.SocialConnect --version 4.5.1
NuGet\Install-Package CodeLogic.SocialConnect -Version 4.5.1
<PackageReference Include="CodeLogic.SocialConnect" Version="4.5.1" />
<PackageVersion Include="CodeLogic.SocialConnect" Version="4.5.1" />
<PackageReference Include="CodeLogic.SocialConnect" />
paket add CodeLogic.SocialConnect --version 4.5.1
#r "nuget: CodeLogic.SocialConnect, 4.5.1"
#:package CodeLogic.SocialConnect@4.5.1
#addin nuget:?package=CodeLogic.SocialConnect&version=4.5.1
#tool nuget:?package=CodeLogic.SocialConnect&version=4.5.1
CodeLogic.SocialConnect
Discord webhook and Steam Web API integration for CodeLogic. Send Discord notifications and fetch Steam player profiles, bans, and game libraries.
Install
dotnet add package CodeLogic.SocialConnect
Quick Start
await Libraries.LoadAsync<SocialConnectLibrary>();
var social = Libraries.Get<SocialConnectLibrary>();
// Discord — send a webhook message
await social.Discord.SendAsync("Server restarted", username: "Bot");
// Steam — fetch player profile
var player = await social.Steam.GetPlayerAsync("76561198012345678");
if (player.IsSuccess)
Console.WriteLine($"{player.Value.PersonaName} — {player.Value.ProfileUrl}");
// Steam — check bans
var bans = await social.Steam.GetPlayerBansAsync("76561198012345678");
Features
Discord
- Webhook Messages — send text, embeds, mentions, with configurable username and avatar
- Default Webhook URL — set once in config, override per call
- Rate Limit Aware — respects Discord rate limits
Steam
- Player Profiles — persona name, avatar (3 sizes), profile URL, real name, country, online status
- Player Bans — VAC bans, game bans, trade bans, community bans
- Game Library — owned games with playtime and app info
- Built-in Cache — configurable TTL (default 5 min) to reduce API calls
- Steam Authentication — ticket-based auth for game server integration
Configuration
Auto-generated at data/codelogic/Libraries/CL.SocialConnect/config.socialconnect.json:
{
"enabled": true,
"discord": {
"enabled": true,
"defaultWebhookUrl": "https://discord.com/api/webhooks/xxx/yyy",
"defaultUsername": "MyApp",
"timeoutSeconds": 10
},
"steam": {
"enabled": true,
"apiKey": "your-steam-web-api-key",
"cacheTtlSeconds": 300,
"timeoutSeconds": 15
}
}
Get your Steam Web API key at steamcommunity.com/dev/apikey.
Documentation
Requirements
- CodeLogic 3.x or 4.x | .NET 10
License
MIT — see LICENSE
| Product | Versions 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. |
-
net10.0
- CodeLogic (>= 3.2.0 && < 5.0.0)
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 |
|---|---|---|
| 4.5.2 | 89 | 5/24/2026 |
| 4.5.1 | 109 | 5/24/2026 |
| 4.5.1-preview.56 | 81 | 5/24/2026 |
| 4.4.2-preview.53 | 46 | 5/24/2026 |
| 4.4.1 | 91 | 5/24/2026 |
| 4.0.5 | 89 | 5/15/2026 |
| 4.0.4 | 99 | 5/9/2026 |
| 4.0.3 | 93 | 5/9/2026 |
| 3.3.1 | 611 | 4/18/2026 |
| 3.3.0 | 103 | 4/18/2026 |
| 3.2.11 | 112 | 4/18/2026 |
| 3.2.10 | 95 | 4/18/2026 |
| 3.2.9 | 97 | 4/18/2026 |
| 3.2.8 | 91 | 4/18/2026 |
| 3.2.7 | 92 | 4/18/2026 |
| 3.2.6 | 96 | 4/18/2026 |
| 3.2.5 | 102 | 4/18/2026 |
| 3.2.4 | 99 | 4/17/2026 |
| 3.2.3 | 90 | 4/17/2026 |
| 3.2.2 | 146 | 4/17/2026 |
# CL.SocialConnect — Changelog
All notable changes to **CodeLogic.SocialConnect** are documented here. Versions follow
[Semantic Versioning](https://semver.org/).
## [4.5.0] — 2026-05-24
### Changed
- **Unified versioning.** All CodeLogic.Libs now share a single version line
controlled by `version.txt` in the repo root. This is a version alignment
release — no functional changes to this library.
## [4.0.4] — 2026-04-16
### Changed
- README + manifest refresh for the v4 baseline. No functional changes vs 4.0.3.
- `LibraryManifest.Version` now reads from assembly metadata.
## [4.0.2] — 2026-04-09
### Changed
- Annotated SocialConnect configuration with `[ConfigField]` for the admin UI surface.
- Aligned with the v4 baseline across all libraries.
### Fixed
- Closed resource leaks in the OAuth client + reworked the health check so
it no longer mutates internal state as a side-effect.
## [4.0.0] — 2026-04-09
Major rewrite. Republished as v4.0.0 to reset the version line under the
unified v4 baseline. OAuth/OIDC providers (Google, Discord, Steam,
generic OIDC) with a uniform abstraction.
### Notes
- Earlier history is retained in the
[git log](https://github.com/Media2A/CodeLogic.Libs/commits/main/CL.SocialConnect).