Upgrade to discord.net 2.0
This commit is contained in:
parent
acb2b25e09
commit
4e4ef3584e
12 changed files with 35 additions and 20 deletions
12
Geekbot.net/Lib/Extensions/EmbedBuilderExtensions.cs
Normal file
12
Geekbot.net/Lib/Extensions/EmbedBuilderExtensions.cs
Normal file
|
@ -0,0 +1,12 @@
|
|||
using Discord;
|
||||
|
||||
namespace Geekbot.net.Lib.Extensions
|
||||
{
|
||||
public static class EmbedBuilderExtensions
|
||||
{
|
||||
public static EmbedBuilder AddInlineField(this EmbedBuilder builder, string name, object value)
|
||||
{
|
||||
return builder.AddField(new EmbedFieldBuilder().WithIsInline(true).WithName(name).WithValue(value));
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue