1.0.2 • Published 9 months ago

disinvite v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
9 months ago

Functions:

disinvite.getInvite(InviteCode , options)

disinvite.get(InviteCode , options)

getInvite() and get() are the same function.

Options:

options.theme: "dark" or "light". Defaults to "Dark"

options.language: ISO 639-1 language code. Defaults to "en"

Example:

const disinvite = require('disinvite');

disinvite.getInvite("faxes").then(svg => {
    fs.writeFileSync(`./invite.svg`, svg);
});

disinvite.get("faxes", {theme: "light", language: "es"}).then(svg => {
    res.download(svg);
});

Notes:

  • Ensure you're using a permanent invite code as old ones will return an error.

If you're looking for a live version online you're able to use the below URL:

https://api.weblutions.com/discord/invite/INVITE_CODE

https://api.weblutions.com/discord/invite/INVITE_CODE/light

Part of this package originally made by the invidget team.