Skip to content

Frier03/csharp-discord

Repository files navigation

CSharp-Discord (Self Bot)

Example

// Create an instance of BotClient which DiscordClient is inherited into
DiscordClient client = new DiscordClient();

// Call LoginAsync
client.LoginAsync("Token");

Listen for events

client.ListenFor(DiscordClient.DiscordEvent.READY, data =>
{
    Ready readyData = (Ready)data;
    output.WriteLine(readyData.d.user.username + " has logged in!");
});

client.ListenFor(DiscordClient.DiscordEvent.MESSAGE_CREATE, data =>
{
    Message messageData = (Message)data;
    output.WriteLine(messageData.d.content);
});

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages