Upgrade to discord.net 2.0
This commit is contained in:
parent
acb2b25e09
commit
4e4ef3584e
12 changed files with 35 additions and 20 deletions
|
@ -65,11 +65,9 @@ namespace Geekbot.net.Commands.Randomness
|
|||
await ReplyAsync("", false, Eb(_mediaProvider.GetFox()));
|
||||
}
|
||||
|
||||
private EmbedBuilder Eb(string image)
|
||||
private static Embed Eb(string image)
|
||||
{
|
||||
var eb = new EmbedBuilder();
|
||||
eb.ImageUrl = image;
|
||||
return eb;
|
||||
return new EmbedBuilder {ImageUrl = image}.Build();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue