-
Notifications
You must be signed in to change notification settings - Fork 0
/
Program.cs
40 lines (38 loc) · 1.39 KB
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
using System;
using System.Collections.Generic;
using DiscordMessenger;
namespace SampleUsage
{
internal class Program
{
public static void Main(string[] args)
{
new DiscordMessage()
.SetUsername("Test Message")
.SetAvatar("https://i.imgur.com/xNGfbn3.png")
.SetContent("A test discord message using the Discord Messenger Library")
.AddEmbed()
.SetTimestamp(DateTime.Now)
.SetTitle("Test Embed")
.SetAuthor("Feli", "https://i.imgur.com/xNGfbn3.png", "https://i.imgur.com/xNGfbn3.png")
.SetDescription("You can use this library for everything you want")
.SetColor(14177041)
.AddField("Test Field", "Test Value")
.AddField("Test Field", "Test Value Inline", true)
.SetFooter("Test Footer", "https://i.imgur.com/xNGfbn3.png")
.Build()
.SendMessage("URL Here");
var message = new DiscordMessage
{
Content = "Test content",
Embeds = new List<Embed>()
{
new Embed
{
Description = "Test"
}
}
};
}
}
}