Browse Source

docs: Fixed mistake in EmbedBuilder docs page (#1303)

tags/2.1.0
Casino Boyale Christopher F 6 years ago
parent
commit
51618e66f2
1 changed files with 5 additions and 4 deletions
  1. +5
    -4
      docs/_overwrites/Common/EmbedBuilder.Overwrites.md

+ 5
- 4
docs/_overwrites/Common/EmbedBuilder.Overwrites.md View File

@@ -40,9 +40,10 @@ public async Task SendRichEmbedAsync()
.WithTitle("I overwrote \"Hello world!\"")
.WithDescription("I am a description.")
.WithUrl("https://example.com")
.WithCurrentTimestamp()
.Build();
await ReplyAsync(embed: embed);
.WithCurrentTimestamp();
//Your embed needs to be built before it is able to be sent
await ReplyAsync(embed: embed.Build());
}
```

@@ -65,4 +66,4 @@ public async Task SendEmbedWithImageAsync()
}.Build();
await Context.Channel.SendFileAsync(fileName, embed: embed);
}
```
```

Loading…
Cancel
Save