Skip to content

k-boyle/Disqord

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Disqord

Build Status NuGet MyGet The Lab

An asynchronous .NET Core 3.0 Discord API wrapper.

Inspired by Discord.Net, DSharpPlus, and discord.py.

Installing

Stable Disqord builds can be pulled from NuGet. For nightly builds add https://www.myget.org/F/quahu/api/v3/index.json (the nightly feed) to your project's package sources and pull from there instead.

Documentation

There's currently no official documentation for Disqord except for the bundled XML docstrings. For support you should hop in my Discord guild:

The Lab

A Simple Ping-Pong Bot Example

Typing ?ping or @YourBot ping in the chat would reply with Pong!.

using System.Threading.Tasks;
using Disqord;
using Disqord.Bot;
using Disqord.Bot.Prefixes;
using Qmmands;

namespace Example
{
    public sealed class Program
    {
        public static void Main()
        {
            var prefixProvider = new DefaultPrefixProvider()
                .AddPrefix('?')
                .AddMentionPrefix();
            using (var bot = new DiscordBot(TokenType.Bot, "token", prefixProvider))
            {
                bot.AddModule<Commands>();
                bot.Run();
            }
        }
    }

    public sealed class Commands : DiscordModuleBase
    {
        [Command("ping")]
        public Task PingAsync()
            => ReplyAsync("Pong!");
    }
}

About

An asynchronous .NET Core 3.0 Discord API wrapper.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 99.6%
  • Smalltalk 0.4%