• Stars
    star
    129
  • Rank 278,250 (Top 6 %)
  • Language
    C#
  • License
    MIT License
  • Created about 9 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A .Net API for Discord written in C#

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}");
};
client.SendLoginRequest();
Thread t = new Thread(client.Connect);
t.Start();

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

Notes

  • 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.

Cousins

We're all one big happy related family.

Discord.Net, another great C# library - https://github.com/RogueException/Discord.Net

Discord4J, a Java library - https://github.com/austinv11/Discord4J

JDiscord, another Java library - https://github.com/NotGGhost/jDiscord

JDA, anotha one - https://github.com/DV8FromTheWorld/JDA

Javacord, anotha one - https://github.com/BtoBastian/Javacord

discord.io, a Node.js library which I referenced a lot - https://github.com/izy521/discord.io

discord.js, an alternate Node.js library - https://github.com/discord-js/discord.js

discordie, another Node.js library - https://github.com/qeled/discordie

DiscordPHP, a PHP library - https://github.com/teamreflex/DiscordPHP

discord-hypertext, the alternate php library https://github.com/Cleanse/discord-php

discordrb, a Ruby library - https://github.com/meew0/discordrb

discord.py, a Python library - https://github.com/Rapptz/discord.py

discord-akka, a Scala library - https://github.com/eaceaser/discord-akka

go-discord, a Go library (Google Go) - https://github.com/gdraynz/go-discord

discordgo, alternate Google Go library - https://github.com/bwmarrin/discordgo

More Repositories

1

cue2pops-gui-mac

GUI Wrapper around cue2pops for Mac users.
C
7
star
2

DOR_Remake

Public page for the DOR remake information/more
HTML
4
star
3

psp-game

some un-named psp game that i'm putting up for convienence/reference
C
3
star
4

lunaluascripts

A collection of Luigifan's LunaLua Scripts.
Lua
3
star
5

JavaRPGEngine

A Java based engine using LWJGL for creating RPG games.
Java
2
star
6

Terraria-Updater

Update for Terraria made in Visual Basic 2010
Visual Basic
2
star
7

terraria-source-edited

The edited source code of Terraria. For educational purposes only. Based off of "TheVamp"'s branch.
C#
2
star
8

marketplace_webscraper

Stupid simple Facebook Marketplace Web Scraper. Not aiming to pretty, just the rough proof of concept. Using Node.js/Puppeteer/Cheerio
HTML
2
star
9

Minecraft2D

2D Minecraft clone in XNA.
C#
2
star
10

MTechEngine

A 2D Game Engine written in C++ with Lua scripting capabilities (heavy WIP)
C++
2
star
11

Lib_DuelistsOfTheRoses

Public core of Duelists of the Remakes. Provides all essential interfaces for unit testing. Logic core separate of the Unity game engine.
C#
2
star
12

FaheyTestEngine

Something for my teacher
Objective-C
1
star
13

MonoNotepadClone

A clone of Notepad written for a compiled/run against Mono 2.10.
C#
1
star
14

vsatresq-website

VSAT ResQ website.
JavaScript
1
star
15

Ootake

an attempt at making this PC Engine emulator less garbled and better looking.
C++
1
star
16

DiscordSharpOverwolf

Overwolf bindings for DiscordSharp.
C#
1
star
17

AlphaBlender

A small C# library for alpha blending images based on a mask (transparency)
Visual Basic
1
star
18

WPFDiscordSharp

C#
1
star
19

minecraftskinstealer

A simple, Java based skin stealer for Minecraft
Java
1
star
20

YugiohPrices

A C# based wrapper for the yugiohprices.com API.
C#
1
star
21

LuaScriptsManager

C#
1
star
22

smbx-epmanager-ver3

Version 3 of the new episode manager. Get your body ready.
C#
1
star
23

Luigibot

C#
1
star
24

MinecraftModInstaller

designed to use with eclipse
Java
1
star
25

simple-mario-transition-unity

A repository for a simple Mario style transition in Unity. This is just simple, barebones code involving UI elements. There are numerous ways you could make it better, however, I wanted to house a small repository for the math behind it & show a working example.
C#
1
star
26

C-RPG

a simple text based c# game
C#
1
star
27

smbx-npc-editor

Frontend for editing NPC-*.txt files/creating them
C#
1
star
28

CaveStoryReconstruct

just me following along with this awesome video series: https://www.youtube.com/playlist?list=PL006xsVEsbKjSKBmLu1clo85yLrwjY67X
C++
1
star
29

sdl_imgui_playground

Just playing around, seeing if I can make a sort of half way competent desktop environment/semi framework using IMGUI and SDL to "keep it simple". The ideals being to use optimized structs wherever possible and to wrap and take some of the headache away from the C-side of these APIs
C++
1
star