🌐Rest Client

StoatRestClient

You can send Stoat API requests using this client without using parent objects.

DMChannel DM = await Client.Rest.GetUserDMChannelAsync("123");

More docs coming soon for this!

Custom Request

You can send custom requests using the method below.

HttpResponseMessage Res = await Client.Rest.SendRequestAsync(RequestType.Get, "users/123");

dynamic Obj = await Client.Rest.SendRequestAsync<dynamic>(RequestType.Get, "users/123");

You can also add a json request body using the RevoltRequest class.

public class CustomData : IStoatRequest
{
    public string test = ":)";
}

dynamic Obj = await Client.Rest.SendRequestAsync<dynamic>(RequestType.Get, "users/123", new CustomData());

Last updated