leovoel/embed-visualizer

For C# Found some typos.

Closed this issue ยท 1 comments

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:

  • An ;, ending the EmbedBuilder.
  • And there is a missing parameter, false or true should be placed behind the , embed
  • And an error Gyldige verdier er mellom -62135596800 og 253402300799. Parameternavn: seconds which means: Valid values are between -62135596800 and 253402300799. Parameter Name: seconds
    skjermbilde

4a660fd, bd503bf and d4d7ce1 should have fixed these.