Guilded.NET 0.5.0

Suggested Alternatives

Guilded

Additional Details

Renamed to `Guilded` to reduce namespace length and for other reasons.

dotnet add package Guilded.NET --version 0.5.0                
NuGet\Install-Package Guilded.NET -Version 0.5.0                
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="Guilded.NET" Version="0.5.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Guilded.NET --version 0.5.0                
#r "nuget: Guilded.NET, 0.5.0"                
#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.
// Install Guilded.NET as a Cake Addin
#addin nuget:?package=Guilded.NET&version=0.5.0

// Install Guilded.NET as a Cake Tool
#tool nuget:?package=Guilded.NET&version=0.5.0                

Banner

Guilded.NET

Version Version

Guilded.NET is an open-source unofficial API wrapper for Guilded written on .NET platform. It tries to integrate as many Guilded API features as possible, while also maintaining the usability and ease of use for the developers.

Example

An example of a bot that only responds to ping commands in C# 10:

// config/config.js
{
    "auth": "your_auth_token_here",
    "prefix": "!"
}
// Program.cs
using System;
using System.IO;
using System.Reactive.Linq;
using System.Threading.Tasks;
using Guilded.NET;
using Newtonsoft.Json.Linq;

// Get the configuration values
JObject config = JObject.Parse(await File.ReadAllTextAsync("./config/config.json").ConfigureAwait(false));

string? auth   = config.Value<string>("auth"),
        prefix = config.Value<string>("prefix");

using GuildedBotClient client = new(auth);

client.Connected += (_, _) => Console.WriteLine("Connected");
client.Prepared += (_, _) => Console.WriteLine("Prepared");

// Wait for !ping messages
client.MessageCreated
    .Where(msgCreated => msgCreated.Content == prefix + "ping")
    .Subscribe(async msgCreated => await msgCreated.ReplyAsync("Pong!").ConfigureAwait(false));

await client.ConnectAsync().ConfigureAwait(false);
// Don't close the program when the bot connects
await Task.Delay(-1).ConfigureAwait(false);

Libraries

  • NewtonSoft.Json - Used as a library to (de)serialize Guilded.NET models.
  • RestSharp - Used for REST clients
  • Websocket.Client - Used for WebSocket clients
  • DefaultDocumentation - Generates documentation/references from .NET XML documentation

Maintainers

See also

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos 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.