Added new getting started guide
Thanks @MinnDevelopment for his awesome work on the JDA guide that had no influence here at all.
This commit is contained in:
22
docs/guides/samples/intro/logging.cs
Normal file
22
docs/guides/samples/intro/logging.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using Discord;
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MyBot
|
||||
{
|
||||
public class Program
|
||||
{
|
||||
public static void Main(string[] args)
|
||||
=> new Program().MainAsync().GetAwaiter().GetResult();
|
||||
|
||||
public async Task MainAsync()
|
||||
{
|
||||
}
|
||||
|
||||
private Task Log(LogMessage msg)
|
||||
{
|
||||
Console.WriteLine(msg.ToString());
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user