You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

Discord.EmbedBuilder.Overwrites.md 821 B

12345678910111213141516171819202122232425262728
  1. ---
  2. uid: Discord.EmbedBuilder
  3. ---
  4. ### Remarks
  5. This builder class is used to build an @Discord.Embed (rich embed)
  6. object that will be ready to be sent via @Discord.IMessageChannel.SendMessageAsync*
  7. after @Discord.EmbedBuilder.Build* is called.
  8. ### Example
  9. ```cs
  10. public async Task SendRichEmbedAsync()
  11. {
  12. var embed = new EmbedBuilder
  13. {
  14. // Embed property can be set within object initializer
  15. Title = "Hello world!"
  16. }
  17. // Or with the method
  18. .WithTitle("I overwrote the title.")
  19. .WithDescription("I am a description.")
  20. .WithUrl("https://example.com")
  21. .Build();
  22. await _channel.SendMessageAsync(string.Empty, embed: embed);
  23. }
  24. ```