🥤 An API wrapper for VAC Efron's web API.
Install the NuGet package here.
Below you can find examples using this wrapper combined with Discord.NET in a command context.
You can also visit the wrapper or API documentation (coming soon).
Creating an image with custom text. Result
// All endpoints can be accessed from the VACEfronEndpoint static class.
var stream = VACEfronEndpoint.ChangeMyMind("My text");
await Context.Channel.SendFileAsync(stream, "image.png");Creating an image with someone's avatar. Result
var stream = VACEfronEndpoint.Stonks(Context.User.GetAvatarUrl());
await Context.Channel.SendFileAsync(stream, "image.png");Creating a rank card image. Result
var rankCard = new RankCard()
{
Username = "VAC Efron#0001",
AvatarUrl = Context.User.GetAvatarUrl(),
Level = 5,
Rank = 1,
CurrentXp = 1878,
PreviousLevelXp = 1500,
NextLevelXp = 2160,
CustomBackgroundUrl = null, // Optional custom background
IsBoosting = false,
XpColorHex = null // Use default progress bar color (#fcba41)
};
var stream = VACEfronEndpoint.RankCard(rankCard);
await Context.Channel.SendFileAsync(stream, "image.png");Please join the Discord server for any questions or issues.