For C# Found some typos.
Closed this issue ยท 1 comments
ThomasAunvik commented
var builder = new EmbedBuilder()
.WithTitle("title ~~(did you know you can have markdown here too?)~~")
.WithDescription("this supports [named links](https://discordapp.com) on top of the previously shown subset of markdown. ```\nyes, even code blocks```")
.WithUrl("https://discordapp.com")
.WithColor(new Color(0x547F96))
.WithTimestamp(DateTimeOffset.FromUnixTimeSeconds(253402300799))
.WithFooter(footer => {
footer
.WithText("footer text")
.WithIconUrl("https://cdn.discordapp.com/embed/avatars/0.png");
})
.WithThumbnailUrl("https://cdn.discordapp.com/embed/avatars/0.png")
.WithImageUrl("https://cdn.discordapp.com/embed/avatars/0.png")
.WithAuthor(author => {
author
.WithName("author name")
.WithUrl("https://discordapp.com")
.WithIconUrl("https://cdn.discordapp.com/embed/avatars/0.png");
})
.AddField("๐ค", "some of these properties have certain limits...")
.AddField("๐ฑ", "try exceeding some of them!")
.AddField("๐", "an informative error should show up, and this view will remain as-is until all issues are fixed")
.AddInlineField("<:thonkang:219069250692841473>", "these last two")
.AddInlineField("<:thonkang:219069250692841473>", "are inline fields");
var embed = builder.Build();
await Context.Channel.SendMessageAsync("this `supports` __a__ **subset** *of* ~~markdown~~ ๐ ```js\nfunction foo(bar) {\n console.log(bar);\n}\n\nfoo(1);```", false, embed)
.ConfigureAwait(false);
Correct one ^
What was wrong with the previous one was: