|
@@ -40,9 +40,10 @@ public async Task SendRichEmbedAsync() |
|
|
.WithTitle("I overwrote \"Hello world!\"") |
|
|
.WithTitle("I overwrote \"Hello world!\"") |
|
|
.WithDescription("I am a description.") |
|
|
.WithDescription("I am a description.") |
|
|
.WithUrl("https://example.com") |
|
|
.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(); |
|
|
}.Build(); |
|
|
await Context.Channel.SendFileAsync(fileName, embed: embed); |
|
|
await Context.Channel.SendFileAsync(fileName, embed: embed); |
|
|
} |
|
|
} |
|
|
``` |
|
|
|
|
|
|
|
|
``` |