Skip to content

VACEfron/VACEfron.NET

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VACEfron.NET 🌯

An asyncronous API wrapper for VAC Efron's API.

Installation

Example

Calling the "ejected" endpoint and writing the image to a file. Result

using VACEfron.NET;
using VACEfron.NET.Enums;
using VACEfron.NET.Exceptions;

try
{
    var client = new VACEfronClient();

    var stream = await client.EjectedAsync(name: "VAC Efron", isImpostor: true, crewmateColor: CrewmateColor.Pink);

    await using var fs = File.Create("image.png");
    stream.CopyTo(fs);
}
catch (VACEfronException e)
{
    Console.WriteLine(e.StatusCode);
    Console.WriteLine(e.Message);
}