Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

This project is dead. Use DSharpPlus or Discord.NET

DiscordSharp Build status

Welcome to the DiscordSharp dev branch!

A C# API for Discord.

From Nuget

DiscordSharp is now available on NuGet! It is marked as pre-release package at the moment. At your package manager console, type Install-Package DiscordSharp -Pre and it will install the additional dependencies (Newtonsoft.Json & websocket-sharp)

How to use

Discord is what I like to call an "event-based" client. In other words, you get your instance of your client and hook up to its various events: either by lambda or by delegating to external voids. A simple example is as follows..

DiscordClient client = new DiscordClient();
client.ClientPrivateInformation.Email = "email";
client.ClientPrivateInformation.Password = "pass";

client.Connected += (sender, e) =>
  Console.WriteLine($"Connected! User: {e.User.Username}");
Thread t = new Thread(client.Connect);

This will get you logged in and print out a login notification to the console with the username you've logged in as.

Example Bot


  • This is such a beta it's not even funny.
  • All of the internal classes are meant to model Discord's internal Json. This is why DiscordMember has a subset ("user") with the actual information.


We're all one big happy related family.

Discord.Net, another great C# library -

Discord4J, a Java library -

JDiscord, another Java library -

JDA, anotha one -

Javacord, anotha one -, a Node.js library which I referenced a lot -

discord.js, an alternate Node.js library -

discordie, another Node.js library -

DiscordPHP, a PHP library -

discord-hypertext, the alternate php library

discordrb, a Ruby library -, a Python library -

discord-akka, a Scala library -

go-discord, a Go library (Google Go) -

discordgo, alternate Google Go library -