Skip to content

[ci skip] Fix Indentation in `messagebuilder.md`

Mateusz Brawański requested to merge github/fork/billyeatcookies/patch-1 into master

Created by: billyeatcookies

PR recreated for master


Summary

  • Fixes indentation in docs/articles/beyond_basics/messagebuilder.md

Details

Code provided under Adding a File section is indented wrong, this pull request corrects it.

Changes proposed

Before:

 using (var fs = new FileStream("ADumbFile.txt", FileMode.Open, FileAccess.Read))
 {
    var msg = await new DiscordMessageBuilder()
        .WithContent("Here is a really dumb file that I am testing with.")
        .WithFiles(new Dictionary<string, Stream>() { { "ADumbFile1.txt", fs } })
        .SendAsync(ctx.Channel);           
}

After:

using (var fs = new FileStream("ADumbFile.txt", FileMode.Open, FileAccess.Read))
{
    var msg = await new DiscordMessageBuilder()
        .WithContent("Here is a really dumb file that I am testing with.")
        .WithFiles(new Dictionary<string, Stream>() { { "ADumbFile1.txt", fs } })
        .SendAsync(ctx.Channel);           
}

Merge request reports

Loading