1
0
mirror of https://gitlab.com/Deukhoofd/DeukBot4.git synced 2025-09-18 14:57:19 +00:00

30 lines
724 B
C#

using System;
using Discord;
namespace DeukBot4.MessageHandlers.CommandHandler
{
public static class EmbedFactory
{
private static EmbedAuthorBuilder Author;
public static void Initialize(ISelfUser user)
{
Author = new EmbedAuthorBuilder()
{
Name = user.Username,
IconUrl = user.GetAvatarUrl(ImageFormat.Png, 128)
};
}
public static EmbedBuilder GetStandardEmbedBuilder()
{
var eb = new EmbedBuilder
{
Author = Author,
Color = Color.Gold,
Timestamp = DateTimeOffset.Now
};
return eb;
}
}
}